2017 © Pedro PelĂĄez
 

yii2-extension yii2-gsftp

Ftp is a FTP extension for [YII 2 Framework](http://www.yiiframework.com).

image

hguenot/yii2-gsftp

Ftp is a FTP extension for [YII 2 Framework](http://www.yiiframework.com).

  • Tuesday, April 3, 2018
  • by hguenot
  • Repository
  • 6 Watchers
  • 10 Stars
  • 15,894 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 5 Forks
  • 0 Open issues
  • 5 Versions
  • 12 % Grown

The README.md

Latest Stable Version Total Downloads License, (*1)

SFtp

SFtp is a FTP extension for YII 2 Framework based on Yii2-gftp extension., (*2)

Installation

The preferred way to install this extension is through composer., (*3)

Either run, (*4)

php composer.phar require --prefer-dist hguenot/yii2-gsftp "*"

or add, (*5)

"hguenot/yii2-gsftp": "*"

to the require section of your composer.json file., (*6)

Usage

Here is a basic usage of GFtp extension., (*7)

  • Create an FTP application component (in your Web config file)
return [
    // [...]
    'components'=>[
        // [...]
        'ftp' => [
            'class' => '\gftp\FtpComponent',
            'connectionString' => 'sftp://user:pass@host:22',
            'driverOptions' => [ 'timeout' => 120 ]
        ]
    ],
    // [...]
];
  • You can user either a connection string where protocol could be ftp or ftps or directly set protocol, user, pass, host and port properties :
return [
    // [...]
    'components'=>[
        // [...]
        'ftp' => [
            'class' => '\gftp\FtpComponent',
            'driverOptions' => [
                'class' => \gftp\FtpProtocol::valueOf('sftp')->driver,
                'user' => 'me@somewhere.otrb',
                'pass' => 'PassW0rd',
                'host' => 'ssh.somewhere.otrb',
                'port' => 22,
                'timeout' => 120
            ]
        ]
    ],
    // [...]
];

Examples

You can find examples on Yii2-gftp extension site., (*8)

The Versions

03/04 2018

dev-master

9999999-dev

Ftp is a FTP extension for [YII 2 Framework](http://www.yiiframework.com).

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

by Hervé Guenot

extension yii2 gftp

03/04 2018

V1.1.2

1.1.2.0

Ftp is a FTP extension for [YII 2 Framework](http://www.yiiframework.com).

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

by Hervé Guenot

extension yii2 gftp

22/10 2015

V1.1.1

1.1.1.0

Ftp is a FTP extension for [YII 2 Framework](http://www.yiiframework.com).

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

by Hervé Guenot

extension yii2 gftp

03/08 2015

1.1

1.1.0.0

Ftp is a FTP extension for [YII 2 Framework](http://www.yiiframework.com).

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

by Hervé Guenot

extension yii2 gftp

19/06 2015

1.0

1.0.0.0

Ftp is a FTP extension for [YII 2 Framework](http://www.yiiframework.com).

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

by Hervé Guenot

extension yii2 gftp