sunxyw / flysystem-sftp
Flysystem adapter for SFTP
2.0.2
2020-12-02 13:23 UTC
Requires
- php: ^7.2 || ^8.0
- league/flysystem: ^2.0.0
- league/mime-type-detection: ^1.0.0
- phpseclib/phpseclib: ^2.0
- dev-master
- 2.x-dev
- 2.0.2
- 2.0.1
- 2.0.0
- 2.0.0-RC1
- 2.0.0-beta.3
- 2.0.0-beta.2
- 2.0.0-beta.1
- 2.0.0-alpha.4
- 2.0.0-alpha.3
- 2.0.0-alpha.2
- 2.0.0-alpha.1
- 1.0.22
- 1.0.21
- 1.0.20
- 1.0.19
- 1.0.18
- 1.0.17
- 1.0.16
- 1.0.15
- 1.0.14
- 1.0.13
- 1.0.12
- 1.0.11
- 1.0.10
- 1.0.9
- 1.0.8
- 1.0.7
- 1.0.6
- 1.0.5
- 1.0.4
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
- dev-php-support/7.4
This package is auto-updated.
Last update: 2024-10-09 06:43:48 UTC
README
This adapter uses phpseclib to provide a SFTP adapter for Flysystem.
Installation
composer require league/flysystem-sftp
Documentation
Full documentation of this adapter can be found here: https://flysystem.thephpleague.com/adapter/sftp/
Usage
use League\Flysystem\Sftp\SftpAdapter; use League\Flysystem\Filesystem; $adapter = new SftpAdapter([ 'host' => 'example.com', 'port' => 22, 'username' => 'username', 'password' => 'password', 'privateKey' => 'path/to/or/contents/of/privatekey', 'passphrase' => 'passphrase-for-privateKey', 'root' => '/path/to/root', 'timeout' => 10, 'directoryPerm' => 0755 ]); $filesystem = new Filesystem($adapter);