承接 hguenot/yii2-gsftp 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

hguenot/yii2-gsftp

最新稳定版本:3.0.0

Composer 安装命令:

composer require hguenot/yii2-gsftp

包简介

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

README 文档

README

Latest Stable Version Total Downloads License

SFtp

SFtp is a FTP extension for YII 2 Framework based on Yii2-gftp extension.

Installation

The preferred way to install this extension is through composer.

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

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

You can find examples on Yii2-gftp extension site.

统计信息

  • 总下载量: 99.88k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 11
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 11
  • Watchers: 6
  • Forks: 13
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固