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 1mo ago

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 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity54

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

2332d 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

[laravel/framework

The Laravel Framework.

34.6k509.9M17.0k](/packages/laravel-framework)[spatie/laravel-backup

A Laravel package to backup your application

6.0k21.8M186](/packages/spatie-laravel-backup)[league/flysystem-aws-s3-v3

AWS S3 filesystem adapter for Flysystem.

1.6k263.6M788](/packages/league-flysystem-aws-s3-v3)[knuckleswtf/scribe

Generate API documentation for humans from your Laravel codebase.✍

2.3k12.2M45](/packages/knuckleswtf-scribe)[unisharp/laravel-filemanager

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

2.2k3.3M73](/packages/unisharp-laravel-filemanager)[spatie/laravel-db-snapshots

Quickly dump and load databases

1.2k2.8M20](/packages/spatie-laravel-db-snapshots)

PHPackages © 2026

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