定制 bashanov/sftp-connector 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

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.

  1. 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('.'));  
  1. Create adapter extends AbstractAdapter class and override getConfig method. 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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-06-17

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固