PHPackages                             xplqcloud/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. xplqcloud/cos

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

xplqcloud/cos
=============

yii2上传文件到腾讯云对象存储组件

v0.1.2(8y ago)43091MITPHP

Since Nov 25Pushed 8y ago1 watchersCompare

[ Source](https://github.com/q490880/yii2-qcloud-cos)[ Packagist](https://packagist.org/packages/xplqcloud/cos)[ RSS](/packages/xplqcloud-cos/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (4)Used By (0)

yii2-qcloud-cos
===============

[](#yii2-qcloud-cos)

yii2上传文件到腾讯云对象存储组件

[CHANGE LOG](CHANGELOG.md)

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require xplqcloud/cos

```

or add

```
"xplqcloud/cos": "*"
```

to the `require` section of your composer.json.

Configuration
-------------

[](#configuration)

To use this extension, simply add the following code in your application configuration:

```
return [
    //....
    'components' => [
        'cos'=>[
            'class'=>'xplqcloud\cos\Cos',
            'app_id' => 'app_id',
            'secret_id' => 'secret_id',
            'secret_key' => 'secret_key',
            'region' => 'region',
            'bucket'=>'bucket',
            'insertOnly'=>true,
            'timeout' => 200
        ],
    ],
];
```

\[操作说明\]
--------

[](#操作说明)

```
//上传文件
\Yii::$app->cos->upload($src, $dst);

//删除文件
\Yii::$app->cos->delFile($dst);

//创建文件夹
\Yii::$app->cos->delFolder($folder);

//删除文件夹
\Yii::$app->cos->delFile($folder);

//获取文件夹列表
\Yii::$app->cos->listFolder($folder);

```

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity55

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

3143d ago

### Community

Maintainers

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

---

Top Contributors

[![q490880](https://avatars.githubusercontent.com/u/11325124?v=4)](https://github.com/q490880 "q490880 (6 commits)")

---

Tags

yii2tencentyuncos

### Embed Badge

![Health badge](/badges/xplqcloud-cos/health.svg)

```
[![Health](https://phpackages.com/badges/xplqcloud-cos/health.svg)](https://phpackages.com/packages/xplqcloud-cos)
```

###  Alternatives

[craftcms/aws-s3

Amazon S3 integration for Craft CMS

631.5M29](/packages/craftcms-aws-s3)[liyunfang/yii2-upload-behavior

Upload behavior for Yii 2

161.7k](/packages/liyunfang-yii2-upload-behavior)

PHPackages © 2026

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