Yii 1.1: gftp

GFtp is a set of FTP component and widget
8 followers

Requirements

  • Tested on Yii 1.1.8 but it can work with previous version

Installation

  • Extract GFtp zip archive under protected/extensions/GFtp

Features

  • A Yii component : create an FTP connection everywhere in your Yii application
  • A Yii application component : create a global FTP connection
  • A widget : display and navigate through the FTP server

Usage

Here is a basic usage of GFtp extension. More samples could be found on GFtp extension website.

  • Create an FTP application component
return array(
    // [...]
    'components'=>array(
        // [...]
        'ftp' => array(
            'class' => 'ext.GFtp.GFtpApplicationComponent',
            'connectionString' => 'ftp://user:pass@host:21',
            'timeout' => 120,
            'passive' => false
        )
    ),
    // [...]
);
  • Create a local FTP component
Yii::import('ext.GFtp.GFtpComponent')
 
$gftp = Yii::createComponent('ext.GFtp.GFtpComponent', array(
    'connectionString' => 'ftp://user:pass@host:21', 
    'timeout' => 120, 
    'passive' => false)
);
  • Use component
$files = $gftp->ls();
$gftp->chdir('images');

Resources

Total 4 comments

#16057 report it
Herve at 2014/01/15 12:26am
Re: TLS

Hi,

Thank for your interest. Support for TLS is planned for the next version.

Full documentation could be found on project page.

Best regards. Hervé

#16054 report it
meadows at 2014/01/14 09:41pm
TLS

Have any documentation, or plans for support of TLS connection?

#11899 report it
Herve at 2013/02/12 12:58am
It now online...

Web site is now online. You could find complete source code on GitHub : https://github.com/hguenot/GFtp/

#11870 report it
Manee at 2013/02/10 03:07am
404

how to download this widget

Leave a comment

Please to leave your comment.

Create extension
Downloads
No downloadable files yet