PHPackages                             hardai/thinkphp-filesystem - 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. hardai/thinkphp-filesystem

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

hardai/thinkphp-filesystem
==========================

thinkphp8.0 filesystem,include Local Aliyun Qiniu Qcloud

v0.0.1(1y ago)26MITPHPPHP &gt;=8.0.0

Since Feb 25Pushed 1y ago1 watchersCompare

[ Source](https://github.com/hardai520/thinkphp-filesystem)[ Packagist](https://packagist.org/packages/hardai/thinkphp-filesystem)[ RSS](/packages/hardai-thinkphp-filesystem/feed)WikiDiscussions main Synced 1mo ago

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

thinkphp-filesystem
===================

[](#thinkphp-filesystem)

thinkphp8.0 filesystem,include Local Aliyun Qiniu Qcloud

\#安装 composer require hardai/thinkphp-filesystem

使用实例：

1# .ENV 文件设置默认驱动aliyun

\[FILESYSTEM\] DRIVER=aliyun

2# filesystem.php 文件配置修改

```
return [
    // 默认磁盘
    'default' => 'aliyun',
    // 磁盘列表
    'disks'   => [
        'local'  => [
            'type' => 'local',
            'root' => app()->getRuntimePath() . 'storage',
        ],
        'public' => [
            // 磁盘类型
            'type'       => 'local',
            // 磁盘路径
            'root'       => app()->getRootPath() . 'public/storage',
            // 磁盘路径对应的外部URL路径
            'url'        => '/storage',
            // 可见性
            'visibility' => 'public',
        ],
        // 更多的磁盘配置信息
        'aliyun' => [
            'type'         => 'aliyun',
            'accessId'     => '',
            'accessSecret' => '',
            'bucket'       => '',
            'endpoint'     => 'oss-cn-beijing.aliyuncs.com',
            'url'          => '',//不要斜杠结尾，此处为URL地址域名。
        ]
    ],
];

```

3#Thinkphp8中使用示例

```
$file = request()->file();
if (empty($file) || !isset($file['img']) || empty($file['img'])) {
    return json_error('请上传图片');
}
try {
    validate(['img' => 'fileSize:10485670|fileExt:jpg,gif,jpeg,png|fileMime:image/jpeg,image/gif,image/png'])
        ->check($file);
    $path = \think\facade\Filesystem::putFile('images', $file['img']);
    $path = \think\facade\Filesystem::geturl($path);
    return  $path;
} catch (\think\exception\ValidateException $e) {
    return $e->getMessage();
}

```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance43

Moderate activity, may be stable

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity32

Early-stage or recently created project

 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

447d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7f722b0ba8466da29948c498c5410af98113707b9c9f5e96d036df1fce3389fa?d=identicon)[hardai520](/maintainers/hardai520)

---

Top Contributors

[![hardai520](https://avatars.githubusercontent.com/u/200357804?v=4)](https://github.com/hardai520 "hardai520 (2 commits)")

### Embed Badge

![Health badge](/badges/hardai-thinkphp-filesystem/health.svg)

```
[![Health](https://phpackages.com/badges/hardai-thinkphp-filesystem/health.svg)](https://phpackages.com/packages/hardai-thinkphp-filesystem)
```

###  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)[iidestiny/flysystem-oss

Flysystem adapter for the Oss storage.

95607.5k26](/packages/iidestiny-flysystem-oss)[yii2-starter-kit/yii2-file-kit

Yii2 file upload and storage kit

151216.8k6](/packages/yii2-starter-kit-yii2-file-kit)[xxtime/flysystem-aliyun-oss

AliYun OSS adapter for flysystem. Support PHP8. aliyuncs/oss-sdk-php ~2.6

51505.3k28](/packages/xxtime-flysystem-aliyun-oss)

PHPackages © 2026

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