PHPackages                             xutl/yii2-qcloud - 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. [Framework](/categories/framework)
4. /
5. xutl/yii2-qcloud

ActiveYii2-extension[Framework](/categories/framework)

xutl/yii2-qcloud
================

The qcloud extension for the yii framework

3.0.2(8y ago)43.8k1MITPHP

Since Sep 23Pushed 8y agoCompare

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

READMEChangelog (5)Dependencies (2)Versions (8)Used By (0)

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

[](#yii2-qcloud)

适用于Yii2的[腾讯云](http://www.qcloud.com)API接口类。

支持操控的接口
-------

[](#支持操控的接口)

### 直接支持

[](#直接支持)

- CDN 内容分发网络
- DNS 云解析
- CMQ 消息队列
- CLB 负载均衡
- TIM [云通信](https://github.com/xutl/yii2-tim)
- Api网关

### 间接支持

[](#间接支持)

- CVM 云服务器
- CPM 黑石物理服务器
- AS 弹性伸缩
- CCS 容器服务
- VPC 私有网络
- 其他使用同类通信加密解析协议的接口都支持。

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

[](#installation)

---

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

Either run

```
php composer.phar require --prefer-dist xutl/yii2-qcloud

```

or add

```
"xutl/yii2-qcloud": "~3.0.0"

```

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

配置
--

[](#配置)

To use this extension, you have to configure the Connection class in your application configuration:

```
return [
    //....
    'components' => [
        'api' => [
            'class' => 'xutl\qcloud\ApiGateway',//注意，绑定secretId、secretKey的接口一定要绑定使用计划，并且把使用计划指定给secretId
            'baseUrl' => 'http://service-xxxxxxx.ap-shanghai.apigateway.myqcloud.com/test',
            'secretId' => 'asdfasdfk;lasdf',
            'secretKey' => '123123123',
            //注：使用方式同 YII2 自带的 httpclient 一致，这里只是封装了一下Header
        ],
        'qcloud' => [
            'class' => 'xutl\qcloud\Qcloud',
            'secretId' => 'abcdefg',
            'secretKey' => 'abcdefg',
            'params'=> [//这里是非扩展的配置参数，如队列任务等
                'aaa.appvvvKey' => 123456789
            ],
            'components' => [
               //各子组件配置，如果无需配置不写即可。也可动态注入配置。
               //如果子组件使用独立的 `secretId` 和 `secretKey` 那么在子组件中单独配置即可，如果没有配置默认使用父  `accessId` 和 `accessKey` 。
               //如果你自己扩展了其他的子组件，这里定义下新的组件配置即可，配置方式，数组接口和 YII 原生组件一致！
              //etc
            ]
        ],
    ]
];
```

使用
--

[](#使用)

```
$cdn = Yii::$app->qcloud->cdn;
$response = $cdn->describeCdnHosts();
print_r($response->data);
```

资源
--

[](#资源)

- [公共参数](http://wiki.qcloud.com/wiki/%E5%85%AC%E5%85%B1%E5%8F%82%E6%95%B0)
- [API列表](https://cloud.tencent.com/document/api)
- [错误码](http://wiki.qcloud.com/wiki/%E9%94%99%E8%AF%AF%E7%A0%81)

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity68

Established project with proven stability

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

Recently: every ~22 days

Total

7

Last Release

3071d ago

Major Versions

1.0.x-dev → 2.0.02017-11-06

2.0.x-dev → 3.0.02018-01-26

### Community

Maintainers

![](https://www.gravatar.com/avatar/87b658aa9d49e0c80cfc609fa2b9dc6d615672b1d895f421f751945a0e394087?d=identicon)[larvacent](/maintainers/larvacent)

---

Top Contributors

[![xutl](https://avatars.githubusercontent.com/u/20939388?v=4)](https://github.com/xutl "xutl (25 commits)")

---

Tags

yii2yii2-extensionyii2-qcloudyii2yiiqcloud

### Embed Badge

![Health badge](/badges/xutl-yii2-qcloud/health.svg)

```
[![Health](https://phpackages.com/badges/xutl-yii2-qcloud/health.svg)](https://phpackages.com/packages/xutl-yii2-qcloud)
```

###  Alternatives

[iiifx-production/yii2-autocomplete-helper

Yii2 Autocomplete Helper

4227.9k2](/packages/iiifx-production-yii2-autocomplete-helper)

PHPackages © 2026

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