rene-roscher / flysystem-sftp
Flysystem adapter for SFTP | Laravel 8.X
2.1
2023-06-04 13:11 UTC
Requires
- php: ^7.3|^8.0
- league/flysystem: *
- phpseclib/phpseclib: ~2.0
Requires (Dev)
- mockery/mockery: 0.9.*
- phpunit/phpunit: ^5.7.25
- dev-master
- 2.x-dev
- 2.1
- 2.0.3
- 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
- v1
- dev-php-support/7.4
This package is auto-updated.
Last update: 2024-12-04 16:34:52 UTC
README
This adapter uses phpseclib to provide a SFTP adapter for Flysystem.
Installation
composer require rene-roscher/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);