KONTOLODON
/
var
/
www
/
ojs-3.3.0-13
/
lib
/
pkp
/
lib
/
vendor
/
league
/
flysystem-sftp
/
Nama File / Folder
Size
Action
src
--
NONE
LICENSE
1.038KB
Hapus
Edit
Rename
composer.json
0.546KB
Hapus
Edit
Rename
readme.md
1.948KB
Hapus
Edit
Rename
# Flysystem Adapter for SFTP [](https://twitter.com/frankdejonge) [](https://travis-ci.org/thephpleague/flysystem-sftp) [](https://scrutinizer-ci.com/g/thephpleague/flysystem-sftp/code-structure) [](https://scrutinizer-ci.com/g/thephpleague/flysystem-sftp) [](LICENSE) [](https://packagist.org/packages/league/flysystem-sftp) [](https://packagist.org/packages/league/flysystem-sftp) [](https://flysystem.thephpleague.com/adapter/sftp/) This adapter uses phpseclib to provide a SFTP adapter for Flysystem. ## Installation ```bash composer require league/flysystem-sftp ``` ## Documentation Full documentation of this adapter can be found [here](https://flysystem.thephpleague.com/adapter/sftp/): https://flysystem.thephpleague.com/adapter/sftp/ ## Usage ```php 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); ```