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

ActiveLibrary

hardphp/thinkphp-filesystem
===========================

thinkphp6.0 filesystem,include Local Aliyun Qiniu Qcloud

v1.2(6y ago)0725↑900%1MITPHPPHP &gt;=7.1.0

Since Dec 20Pushed 3y ago1 watchersCompare

[ Source](https://github.com/hardphp/thinkphp-filesystem)[ Packagist](https://packagist.org/packages/hardphp/thinkphp-filesystem)[ RSS](/packages/hardphp-thinkphp-filesystem/feed)WikiDiscussions master Synced today

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

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

[](#thinkphp-filesystem)

thinkphp6.0 filesystem,include Local Aliyun Qiniu Qcloud

\#安装 composer require hardphp/thinkphp-filesystem

使用实例：

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

\[FILESYSTEM\] DRIVER=aliyun

2# filesystem.php 文件配置修改

```
return [
    'default' => Env::get('filesystem.driver', 'local'),
    'disks'   => [
        'local'  => [
            'type' => 'local',
            'root' => app()->getRuntimePath() . 'storage',
        ],
        'public' => [
            'type'       => 'local',
            'root'       => app()->getRootPath() . 'public/storage',
            'url'        => '/storage',
            'visibility' => 'public',
        ],
        // 更多的磁盘配置信息
        'aliyun' => [
            'type'         => 'aliyun',
            'accessId'     => '',
            'accessSecret' => '',
            'bucket'       => '',
            'endpoint'     => 'oss-cn-beijing.aliyuncs.com',
            'url'          => '',//不要斜杠结尾，此处为URL地址域名。
        ]
    ],

];

```

3#Thinkphp6中使用示例

```
$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

27

—

LowBetter than 51% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity53

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

Every ~0 days

Total

3

Last Release

2286d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/39dc81cac91853bd460c4032270dcf987225eea9ac46e9cc04b50b86e107efe2?d=identicon)[hardphp](/maintainers/hardphp)

---

Top Contributors

[![hardphp](https://avatars.githubusercontent.com/u/8262664?v=4)](https://github.com/hardphp "hardphp (17 commits)")

### Embed Badge

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

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

###  Alternatives

[iidestiny/flysystem-oss

Flysystem adapter for the Oss storage.

96597.6k24](/packages/iidestiny-flysystem-oss)[zhongshaofa/easyadmin

基于ThinkPHP6.0和layui的快速开发的后台管理系统。

6589.3k](/packages/zhongshaofa-easyadmin)[xxtime/flysystem-aliyun-oss

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

51495.4k27](/packages/xxtime-flysystem-aliyun-oss)[apollopy/flysystem-aliyun-oss

This is a Flysystem adapter for the Aliyun OSS ~2.3

94126.1k3](/packages/apollopy-flysystem-aliyun-oss)[yangyifan/upload

上传 SDK for Laravel

12122.6k3](/packages/yangyifan-upload)[topthink/think-filesystem

The ThinkPHP 8.0 Filesystem Package

15575.8k51](/packages/topthink-think-filesystem)

PHPackages © 2026

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