bashanov/sftp-connector
Composer 安装命令:
composer create-project bashanov/sftp-connector
包简介
Package to establish secure FTP (SFTP) connection via curl or ssh2.
README 文档
README
Library helps to establish SFTP connection and work with files and folders via curl or ssh2.
Install
Use composer to install
composer require bashanov/sftp-connector
Use
There are 2 ways to create sftp connection.
- Create Factory instance with connection configuration. Example:
/** Creating new connection and getting information about files and folders in current directory */ $sftp = SftpConnectorFactory::createConnection([ 'host' => 'test.website.com', 'username' => 'login', 'password' => 'password' ]); print_r($sftp->ls('.'));
- Create
adapterextendsAbstractAdapterclass and overridegetConfigmethod. You may find the example file in repository,src/adapter/TestAdapter.
Notes
Supports only auth_none and auth_password methods.
统计信息
- 总下载量: 12
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-06-17