PHPackages                             johnnycai/tp6-filesystem-cloud - 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. johnnycai/tp6-filesystem-cloud

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

johnnycai/tp6-filesystem-cloud
==============================

thinkphp6 filesystem cloud support,include Aliyun,Qcloud and Qiniu.

v1.0.1(3y ago)120MITPHPPHP &gt;=7.1.0

Since Jan 15Pushed 3y ago1 watchersCompare

[ Source](https://github.com/betaec/tp6-filesystem-cloud)[ Packagist](https://packagist.org/packages/johnnycai/tp6-filesystem-cloud)[ RSS](/packages/johnnycai-tp6-filesystem-cloud/feed)WikiDiscussions master Synced 3w ago

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

tp6-filesystem-cloud
====================

[](#tp6-filesystem-cloud)

ThinkPHP6 的Filesystem扩展包，支持上传到阿里云、腾讯云、七牛云、华为云

使用方法
----

[](#使用方法)

### 安装

[](#安装)

```
composer require johnnycai/tp6-filesystem-cloud
```

### 在config/filesystem.php中增加对应驱动配置

[](#在configfilesystemphp中增加对应驱动配置)

```
return [
    "default" => "oss",
    "disks" => [
        "public" => [
            "type" => "local",
            "root" => ".",
            "visibility" => "public",
            "domain" => ""
        ],
        // 阿里云配置
        "oss" => [
            "type" => "oss",
            'prefix'  => '',// 前缀，非必填
            "accessKeyId" => "",
            "accessKeySecret" => "",
            "endpoint" => "",
            "bucket" => "",
            "domain" => ""
        ],
        // 七牛云配置
        "qiniu" => [
            "type" => "qiniu",
            "accessKey" => "",
            "secretKey" => "",
            "bucket" => "",
            "domain" => ""
        ],
        // 腾讯云配置
        "cos" => [
            "type" => "cos",
            "region" => "ap-guangzhou",
            "credentials" => [
                "appId" => "",
                "secretId" => "",
                "secretKey" => ""
            ],
            "bucket" => "",
            "domain" => "",
            "scheme" => "https",
            'encrypt'=> false,
        ],
        // 华为云配置
        "obs" => [
            "type" => "obs",
            "accessKey" => "",
            "secretKey" => "",
            "endpoint" => "",
            "bucket" => "",
            "domain" => ""
        ],
    ]
];
```

用法
--

[](#用法)

### 上传

[](#上传)

```
$file = $this->request->file('file');
\think\facade\Filesystem::disk('oss')->putFile('upload', $file);
```

### 删除

[](#删除)

```
\think\facade\Filesystem::disk('oss')->delete($path);
```

### 更新

[](#更新)

```
\think\facade\Filesystem::disk('oss')->update($path);
```

### 重命名

[](#重命名)

```
\think\facade\Filesystem::disk('oss')->rename($path，$newpath);
```

### 创建文件夹

[](#创建文件夹)

```
\think\facade\Filesystem::disk('oss')->createDir($dirname);
```

### 删除文件夹

[](#删除文件夹)

```
\think\facade\Filesystem::disk('oss')->createDir($dirname);
```

更详细用法参考Adapter对应文件

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

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 ~244 days

Total

2

Last Release

1374d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/62253?v=4)[johnnycai](/maintainers/johnnycai)[@johnnycai](https://github.com/johnnycai)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/johnnycai-tp6-filesystem-cloud/health.svg)

```
[![Health](https://phpackages.com/badges/johnnycai-tp6-filesystem-cloud/health.svg)](https://phpackages.com/packages/johnnycai-tp6-filesystem-cloud)
```

PHPackages © 2026

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