PHPackages                             thomasgenster/flysystem-sftp - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [File &amp; Storage](/categories/file-storage)
4. /
5. thomasgenster/flysystem-sftp

ActiveLibrary[File &amp; Storage](/categories/file-storage)

thomasgenster/flysystem-sftp
============================

Flysystem adapter for SFTP

1.0.12(9y ago)025.2k1MITPHPPHP &gt;=5.4.0

Since Jan 21Pushed 9y ago1 watchersCompare

[ Source](https://github.com/thomasgenster/flysystem-sftp)[ Packagist](https://packagist.org/packages/thomasgenster/flysystem-sftp)[ RSS](/packages/thomasgenster-flysystem-sftp/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (4)Versions (14)Used By (1)

Flysystem Adapter for SFTP
==========================

[](#flysystem-adapter-for-sftp)

[![Author](https://camo.githubusercontent.com/bf87237874a25aebcf58b7f23dfdeb9098e58b5c011ca83aed2b6e519a392d84/687474703a2f2f696d672e736869656c64732e696f2f62616467652f617574686f722d406672616e6b64656a6f6e67652d626c75652e7376673f7374796c653d666c61742d737175617265)](https://twitter.com/frankdejonge)[![Build Status](https://camo.githubusercontent.com/99fa0d5fcf9aeae3172fa484692680f4ed09e99ce9fa549feed644e1ba70c8e2/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f7468657068706c65616775652f666c7973797374656d2d736674702f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/thephpleague/flysystem-sftp)[![Coverage Status](https://camo.githubusercontent.com/63b81d2539c1ec2cd676c027c6cc5d1e204ac0fc71f32eb8d6463a79d895094b/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f7468657068706c65616775652f666c7973797374656d2d736674702e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/thephpleague/flysystem-sftp/code-structure)[![Quality Score](https://camo.githubusercontent.com/d67736c61b56e889ebe3d74a66510fa0c7d4a8e765c453341b72fd77dcbfc84b/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f7468657068706c65616775652f666c7973797374656d2d736674702e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/thephpleague/flysystem-sftp)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Packagist Version](https://camo.githubusercontent.com/8beac1c0e5f1299df8e29b72526d7a56a95e5ecea5ddc176011e9664e86627ad/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c65616775652f666c7973797374656d2d736674702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/league/flysystem-sftp)[![Total Downloads](https://camo.githubusercontent.com/cfbb9d38adb180e57d0aeb3be182031da1e6a8c82b7b3c647a1a39a351811c42/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c65616775652f666c7973797374656d2d736674702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/league/flysystem-sftp)

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

Installation
------------

[](#installation)

```
composer require league/flysystem-sftp
```

Usage
-----

[](#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',
    'root' => '/path/to/root',
    'timeout' => 10,
    'agent' => true,
    'directoryPerm' => 0755
]);

$filesystem = new Filesystem($adapter);
```

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 63.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~52 days

Recently: every ~78 days

Total

13

Last Release

3499d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c6c064467d3a2261d5c1372119d561e05152cf47233337485f72f66676f6fab7?d=identicon)[thomasgenster](/maintainers/thomasgenster)

---

Top Contributors

[![frankdejonge](https://avatars.githubusercontent.com/u/534693?v=4)](https://github.com/frankdejonge "frankdejonge (39 commits)")[![andreybolonin](https://avatars.githubusercontent.com/u/2576509?v=4)](https://github.com/andreybolonin "andreybolonin (8 commits)")[![skoop](https://avatars.githubusercontent.com/u/90003?v=4)](https://github.com/skoop "skoop (3 commits)")[![sandisk](https://avatars.githubusercontent.com/u/573405?v=4)](https://github.com/sandisk "sandisk (2 commits)")[![danut007ro](https://avatars.githubusercontent.com/u/1083134?v=4)](https://github.com/danut007ro "danut007ro (2 commits)")[![fabiang](https://avatars.githubusercontent.com/u/348344?v=4)](https://github.com/fabiang "fabiang (1 commits)")[![cramiro](https://avatars.githubusercontent.com/u/432391?v=4)](https://github.com/cramiro "cramiro (1 commits)")[![GrahamCampbell](https://avatars.githubusercontent.com/u/2829600?v=4)](https://github.com/GrahamCampbell "GrahamCampbell (1 commits)")[![kfriend](https://avatars.githubusercontent.com/u/634835?v=4)](https://github.com/kfriend "kfriend (1 commits)")[![marcodearaujo](https://avatars.githubusercontent.com/u/4330991?v=4)](https://github.com/marcodearaujo "marcodearaujo (1 commits)")[![Anahkiasen](https://avatars.githubusercontent.com/u/1321596?v=4)](https://github.com/Anahkiasen "Anahkiasen (1 commits)")[![duncan3dc](https://avatars.githubusercontent.com/u/546811?v=4)](https://github.com/duncan3dc "duncan3dc (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/thomasgenster-flysystem-sftp/health.svg)

```
[![Health](https://phpackages.com/badges/thomasgenster-flysystem-sftp/health.svg)](https://phpackages.com/packages/thomasgenster-flysystem-sftp)
```

###  Alternatives

[league/flysystem-aws-s3-v3

AWS S3 filesystem adapter for Flysystem.

1.6k263.6M790](/packages/league-flysystem-aws-s3-v3)[unisharp/laravel-filemanager

A file upload/editor intended for use with Laravel 5 to 10 and CKEditor / TinyMCE

2.2k3.3M74](/packages/unisharp-laravel-filemanager)[league/flysystem-sftp-v3

SFTP filesystem adapter for Flysystem.

6129.6M91](/packages/league-flysystem-sftp-v3)[league/flysystem-bundle

Symfony bundle integrating Flysystem into Symfony applications

40029.5M87](/packages/league-flysystem-bundle)[league/flysystem-memory

In-memory filesystem adapter for Flysystem.

8533.6M194](/packages/league-flysystem-memory)[yii2-starter-kit/yii2-file-kit

Yii2 file upload and storage kit

151216.8k6](/packages/yii2-starter-kit-yii2-file-kit)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
