PHPackages                             sindll-tech/think-filesystem-driver-cos - 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. sindll-tech/think-filesystem-driver-cos

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

sindll-tech/think-filesystem-driver-cos
=======================================

The ThinkPHP Filesystem Package

1.0.2(10mo ago)041Apache-2.0PHPPHP &gt;=8.1.0

Since Jun 25Pushed 10mo agoCompare

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

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

think-filesystem-driver-cos
===========================

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

这是一个基于腾讯云对象存储的thinkphp6.0 Filesystem驱动。

安装
--

[](#安装)

```
    composer require sindll-tech/think-filesystem-driver-cos
```

在`config/filesystem.php`中添加配置:

```
    'cos' => [
      'type'            => \think\filesystem\driver\Cos::class,
      'region'          => '***', //bucket 所属区域 英文
      'app_id'          => '***', // 域名中数字部分
      'secret_id'       => '***',
      'secret_key'      => '***',
      'bucket'          => '***',
      'timeout'         => 60,
      'connect_timeout' => 60,
      'scheme'          => 'https',
      'url'             => '',//访问域名
    ],

```

使用
--

[](#使用)

```
//默认$file为单文件。$file为多文件时file为数组，需要进行遍历处理
$file=\request()->file('file');
$filesystem     = \think\facade\Filesystem::disk('cos');
$saveName       = $filesystem->putFile('/path/to/save/file', $file, 'md5');
$saveName       = str_replace('\\', '/', $saveName);
$fullName = \think\facade\Filesystem::getDiskConfig('cos', 'url').'/'.$saveName;
```

授权
--

[](#授权)

MIT

参考
--

[](#参考)

- thinkphp
- overtrue/flysystem-cos
- [腾讯云对象存储](https://cloud.tencent.com/document/product/436)

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance55

Moderate activity, may be stable

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity48

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

Total

3

Last Release

302d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/90d74cb8a2b051b7071285f6f8267560eb7004b02c6d49b74651a074e594782a?d=identicon)[wisoch](/maintainers/wisoch)

---

Top Contributors

[![sindll-tech](https://avatars.githubusercontent.com/u/85152143?v=4)](https://github.com/sindll-tech "sindll-tech (3 commits)")

### Embed Badge

![Health badge](/badges/sindll-tech-think-filesystem-driver-cos/health.svg)

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

###  Alternatives

[overtrue/laravel-filesystem-cos

A Cos storage filesystem for Laravel.

93139.3k9](/packages/overtrue-laravel-filesystem-cos)[topthink/think-filesystem

The ThinkPHP 8.0 Filesystem Package

18665.7k61](/packages/topthink-think-filesystem)[thans/thinkphp-filesystem-cloud

thinkphp6.0 filesystem,include Aliyun and Qiniu

2739.0k3](/packages/thans-thinkphp-filesystem-cloud)[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)
