PHPackages                             reaway/think-filesystem-driver-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. reaway/think-filesystem-driver-sftp

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

reaway/think-filesystem-driver-sftp
===================================

thinkphp filesystem sftp driver

v1.0.0(1y ago)14Apache-2.0PHPPHP ^8.2

Since Jul 2Pushed 1y agoCompare

[ Source](https://github.com/reaway/think-filesystem-driver-sftp)[ Packagist](https://packagist.org/packages/reaway/think-filesystem-driver-sftp)[ Docs](https://github.com/reaway/think-filesystem-driver-sftp)[ RSS](/packages/reaway-think-filesystem-driver-sftp/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

think-filesystem-driver-sftp
============================

[](#think-filesystem-driver-sftp)

安装
--

[](#安装)

```
composer require reaway/think-filesystem-driver-sftp
```

用法
--

[](#用法)

在config/filesystem.php添加配置

```
return [
    'default' =>  'local',
    'disks'   => [
        'local'  => [
            'type' => 'local',
            'root'   => app()->getRuntimePath() . 'storage',
        ],
        'public' => [
            'type'     => 'local',
            'root'       => app()->getRootPath() . 'public/storage',
            'url'        => '/storage',
            'visibility' => 'public',
        ],
        // 添加配置
         'sftp'  => [
            'type' => 'sftp',
            'root' => 'uploads',
            'connection' => [
                'host' => '127.0.0.1',
                // 基于基础的身份验证设置...
                'username' => 'username',
                'password' => 'password',
                // 可选的 SFTP 设置
                'port' => 22,
            ]
        ],
    ],
];
```

使用

```
use think\facade\Filesystem;

$savename = Filesystem::disk('sftp')->putFile('topic', $file);
```

文档
--

[](#文档)

详细参考 [https://doc.thinkphp.cn/v8\_0/upload.html](https://doc.thinkphp.cn/v8_0/upload.html)

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance50

Moderate activity, may be stable

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

367d ago

### Community

Maintainers

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

---

Top Contributors

[![reaway](https://avatars.githubusercontent.com/u/60423559?v=4)](https://github.com/reaway "reaway (1 commits)")

### Embed Badge

![Health badge](/badges/reaway-think-filesystem-driver-sftp/health.svg)

```
[![Health](https://phpackages.com/badges/reaway-think-filesystem-driver-sftp/health.svg)](https://phpackages.com/packages/reaway-think-filesystem-driver-sftp)
```

###  Alternatives

[pimcore/data-importer

Adds a comprehensive import functionality to Pimcore Datahub

46855.5k5](/packages/pimcore-data-importer)[yzh52521/think-filesystem

thinkphp6.1 for filesystem,include Aliyun and Qiniu COS OBS

113.9k](/packages/yzh52521-think-filesystem)

PHPackages © 2026

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