PHPackages                             evans/yii2-ucpaas - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. evans/yii2-ucpaas

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

evans/yii2-ucpaas
=================

ucpaas sms sdk for Yii2

020PHP

Since Jul 17Pushed 8y agoCompare

[ Source](https://github.com/EvansYe2/yii2-ucpaas)[ Packagist](https://packagist.org/packages/evans/yii2-ucpaas)[ RSS](/packages/evans-yii2-ucpaas/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (1)Used By (0)

yii2-ucpaas
===========

[](#yii2-ucpaas)

Yii2 SMS extension （云之讯短信扩展）

项目需要，目前只封装了短信发送，其余的功能抽空添加上。

第一次提交代码到github，难免会有问题，请包涵，欢迎提出问题。

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

[](#installation)

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

To install, either run

```
$ php composer.phar require evans/yii2-ucpaas "dev-master"

```

or add

```
"evans/yii2-ucpaas": "dev-master"

```

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

Usage
-----

[](#usage)

```
return [
    'components' => [
        'tongzhi' =>[
            'class' => 'evans\ucpaas\SmsUcpaas',
            'accountsid' => '这里填写您的Account Sid',
            'token' => '这里填写您的Auth Token',
            'appId' => '这里请填写您的应用id',
            'templateId' => '填写短信模板id',
        ],

		'yanzhma' =>[
            'class' => 'evans\ucpaas\SmsUcpaas',
            'accountsid' => '这里填写您的Account Sid',
            'token' => '这里填写您的Auth Token',
            'appId' => '这里请填写您的应用id',
            'templateId' => '填写短信模板id',
        ],
    ],
];
```

支持多配置

```
调用方式：
$sms = Yii::$app->tongzhi;
$param = "Evans,123123,jiangsu,china";//短信发送内容，以逗号分隔，具体多少个参数取决于短信模板里面
var_dump($sms->sendSMS('15298745787',$param));//调用短信发送
```

License
-------

[](#license)

**yii2-ucpaas** is released under the MIT License.

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/27cc0d5f6277d60a8a8988004b1ec514096ed34cabc06bb78ec24d7155c556d7?d=identicon)[EvansYe](/maintainers/EvansYe)

---

Top Contributors

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

---

Tags

smsucpassyii2yii2-extensionyii2-ucpass

### Embed Badge

![Health badge](/badges/evans-yii2-ucpaas/health.svg)

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

###  Alternatives

[winter/wn-seo-plugin

Winter CMS plugin for managing SEO tags

106.5k](/packages/winter-wn-seo-plugin)

PHPackages © 2026

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