PHPackages                             spiritvl/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. spiritvl/yii2-gsftp

ActiveYii2-extension

spiritvl/yii2-gsftp
===================

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

3.0.2(2y ago)027GPL-3.0+PHPPHP &gt;=7.1

Since Jun 15Pushed 2y agoCompare

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

READMEChangelog (2)Dependencies (4)Versions (3)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/fe084511bbcf35545f3eff4adf677b26535df1943a7de6b060cc790b12b2a88e/68747470733a2f2f706f7365722e707567782e6f72672f686775656e6f742f796969322d67736674702f762f737461626c65)](https://packagist.org/packages/hguenot/yii2-gsftp)[![Total Downloads](https://camo.githubusercontent.com/33d5e6dbc3c00b6e196bbe27b1ecc1b3a3e1fa7b3a7c954886d73a6926100fcf/68747470733a2f2f706f7365722e707567782e6f72672f686775656e6f742f796969322d67736674702f646f776e6c6f616473)](https://packagist.org/packages/hguenot/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.

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

[](#installation)

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

Either run

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

```

or add

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

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

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 81.8% of commits — single point of failure

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 ~1 days

Total

2

Last Release

1062d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d95bd35d65a4f864148cf7d65b24db213cfc26df018eeea4d19ddd2c1a84e01a?d=identicon)[spiritvl](/maintainers/spiritvl)

---

Top Contributors

[![hguenot](https://avatars.githubusercontent.com/u/2578010?v=4)](https://github.com/hguenot "hguenot (9 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/spiritvl-yii2-gsftp/health.svg)

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

###  Alternatives

[hguenot/yii2-gsftp

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

11103.1k1](/packages/hguenot-yii2-gsftp)[hguenot/yii2-gftp

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

16131.8k7](/packages/hguenot-yii2-gftp)[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)
