承接 daanwilson/php-sftp-client 相关项目开发

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

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

daanwilson/php-sftp-client

最新稳定版本:v1.0.0

Composer 安装命令:

composer require daanwilson/php-sftp-client

包简介

A SFTP extension for the php-ftp-client library from Nicolas (nicolab/php-ftp-client).

README 文档

README

A SFTP extension for the library of Nicolab/php-ftp-client. This lib provides helpers easy to use to manage the remote files through SFTP. When you want to use this library/extension, be sure that OpenSSL and ssh2_connect is enabled on the server. Else it will throw an error when you want to connect to a server through SFTP. Most FTP functions are also compatible with SFTP.

Install

  • Install package with composer
composer require daanwilson/php-sftp-client
  • Or use GIT clone command:
git clone git@github.com:daanwilson/php-sftp-client.git

Getting Started

Connect to a server SFTP (on port 22 or another port) :

$ftp = new \SfpClient\SftpClient();
$ftp->connect($host, true, 22);
$ftp->login($login, $password);

Note: The connection is implicitly closed at the end of script execution (when the object is destroyed). Therefore it is unnecessary to call $ftp->close(), except for an explicit re-connection.

API doc

See the source code for more details.

License

MIT c) 2024, Daan Wilson.

Author

![Daan Wilson - daanwilson.nl]
Daan Wilson
Make a donation via Paypal

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-01-17