Technology moves fast! ⚡ Don't get left behind.🚶 Subscribe to our mailing list to keep up with latest and greatest in open source projects! 🏆

Subscribe to our mailing list


Flysystem Adapter for SFTP

Subscribe to updates I use flysystem-sftp

Statistics on flysystem-sftp

Number of watchers on Github 97
Number of open issues 5
Average time to close an issue about 1 month
Main language PHP
Average time to merge a PR 5 days
Open pull requests 3+
Closed pull requests 8+
Last commit over 1 year ago
Repo Created over 4 years ago
Repo Last Updated over 1 year ago
Size 65 KB
Organization / Authorthephpleague
Page Updated
Do you use flysystem-sftp? Leave a review!
View open issues (5)
View flysystem-sftp activity
View on github
Fresh, new opensource launches 🚀🚀🚀
Trendy new open source projects in your inbox! View examples

Subscribe to our mailing list

Evaluating flysystem-sftp for your project? Score Explanation
Commits Score (?)
Issues & PR Score (?)

Flysystem Adapter for SFTP

Author Build Status Coverage Status Quality Score Software License Packagist Version Total Downloads Documentation

This adapter uses phpseclib to provide a SFTP adapter for Flysystem.


composer require league/flysystem-sftp


Full documentation of this adapter can be found here:


use League\Flysystem\Sftp\SftpAdapter;
use League\Flysystem\Filesystem;

$adapter = new SftpAdapter([
    'host' => '',
    'port' => 22,
    'username' => 'username',
    'password' => 'password',
    'privateKey' => 'path/to/or/contents/of/privatekey',
    'root' => '/path/to/root',
    'timeout' => 10,
    'directoryPerm' => 0755

$filesystem = new Filesystem($adapter);
flysystem-sftp open issues Ask a question     (View All Issues)
  • over 2 years Passphrase for private key
  • almost 3 years SFTP Adapter doesn't support double authentication
  • about 3 years Fails to delete directory
  • about 3 years write stream results in a zero byte file
  • about 3 years Input Checks
  • over 3 years Missing trailing directory seperator in 145
flysystem-sftp open pull requests (View All Pulls)
  • flip type detection because ['type'] is not set when is a file
  • added URL setter and getter
  • Progress callback
flysystem-sftp questions on Stackoverflow (View All Questions)
  • Laravel Flysystem SFTP connection
flysystem-sftp list of languages used
Other projects in PHP