PHPackages                             luisfertechxonn/yii2-gsftp - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. luisfertechxonn/yii2-gsftp

ActiveComposer[Utility &amp; Helpers](/categories/utility)

luisfertechxonn/yii2-gsftp
==========================

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

v1.0.3(2y ago)03GPL-3.0+PHPPHP &gt;=7.1

Since Jun 8Pushed 2y agoCompare

[ Source](https://github.com/LuisferTechxonn/yii2-gsftp)[ Packagist](https://packagist.org/packages/luisfertechxonn/yii2-gsftp)[ RSS](/packages/luisfertechxonn-yii2-gsftp/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (4)Versions (5)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/fe084511bbcf35545f3eff4adf677b26535df1943a7de6b060cc790b12b2a88e/68747470733a2f2f706f7365722e707567782e6f72672f686775656e6f742f796969322d67736674702f762f737461626c65)](https://packagist.org/packages/luisfertechxonn/yii2-gsftp)[![License](https://camo.githubusercontent.com/07a39cc1e514a0591d0155f2ac9a2e15d8411fb054571ff8119d1148b0c4b33e/68747470733a2f2f706f7365722e707567782e6f72672f686775656e6f742f796969322d67736674702f6c6963656e7365)](https://packagist.org/packages/hguenot/yii2-gsftp)

SFtp
====

[](#sftp)

SFtp is a FTP extension for [YII 2 Framework](http://www.yiiframework.com) based on [Yii2-gftp](https://github.com/hguenot/yii2-gftp) extension.

Based on [yii2-gsftp](https://github.com/hguenot/yii2-gsftp) **Thanks man**.

Main change from the original package, this package has been prepared for make it work with local project which needs of specific versions of php, yii... etc.

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

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

```

or add

```
"luisfertechxonn/yii2-gsftp": "*"

```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

Here is a basic usage of GFtp extension.

- 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
			]
		]
	],
	// [...]
];
```

- You can user directly loading the main library:

```
use gftp\drivers\SftpDriver;

    /**
     * Function that will create the object with users and passwords
	 * Do not forget to control the exceptions and errors!!!!!
     */
    public function FTPClient(p)
    {
        $sftp = new SftpDriver();
        $sftp->setHost("host.host.es");
        $sftp->setUser("LuisferParra");
        $sftp->setPass("TheAmazingPassword123456");
        $sftp->connect();
        $sftp->login();
    }
```

Examples
--------

[](#examples)

You can find examples on [Yii2-gftp extension](https://github.com/hguenot/yii2-gftp) site.

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

4

Last Release

1068d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0bb6b30b17dfe6f97456c0565b6a3d26bfd86a9ecd83cd9323bc5323f54fef0b?d=identicon)[Luisfernando.Parra.Techxonn](/maintainers/Luisfernando.Parra.Techxonn)

---

Top Contributors

[![hguenot](https://avatars.githubusercontent.com/u/2578010?v=4)](https://github.com/hguenot "hguenot (9 commits)")[![LuisferTechxonn](https://avatars.githubusercontent.com/u/85304522?v=4)](https://github.com/LuisferTechxonn "LuisferTechxonn (8 commits)")[![ArsSirek](https://avatars.githubusercontent.com/u/9570667?v=4)](https://github.com/ArsSirek "ArsSirek (1 commits)")[![diegotibi](https://avatars.githubusercontent.com/u/25210612?v=4)](https://github.com/diegotibi "diegotibi (1 commits)")

---

Tags

yii2extensiongftp

### Embed Badge

![Health badge](/badges/luisfertechxonn-yii2-gsftp/health.svg)

```
[![Health](https://phpackages.com/badges/luisfertechxonn-yii2-gsftp/health.svg)](https://phpackages.com/packages/luisfertechxonn-yii2-gsftp)
```

###  Alternatives

[hguenot/yii2-gftp

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

16131.8k7](/packages/hguenot-yii2-gftp)[hguenot/yii2-gsftp

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

11103.1k1](/packages/hguenot-yii2-gsftp)[richardfan1126/yii2-js-register

Yii2 widget to register JS into view

1357.2k7](/packages/richardfan1126-yii2-js-register)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
