PHPackages                             myzero1/yii2-smser - 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. myzero1/yii2-smser

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

myzero1/yii2-smser
==================

Yii2 SMS extension

v1.5.2(6y ago)0363BSD-3-ClausePHP

Since May 26Pushed 6y agoCompare

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

READMEChangelog (3)Dependencies (2)Versions (10)Used By (3)

yii2-smser
==========

[](#yii2-smser)

[![Latest Stable Version](https://camo.githubusercontent.com/7a17dbc8379128ee74138f8f92e07171259bb985a3d589f2c0346fd310aef22c/68747470733a2f2f706f7365722e707567782e6f72672f6d797a65726f312f796969322d736d7365722f762f737461626c65)](https://packagist.org/packages/myzero1/yii2-smser) [![Total Downloads](https://camo.githubusercontent.com/34635c83816a3f3e43e221208380abd1dc90750d5a458f047d7716cad231ca50/68747470733a2f2f706f7365722e707567782e6f72672f6d797a65726f312f796969322d736d7365722f646f776e6c6f616473)](https://packagist.org/packages/myzero1/yii2-smser) [![Latest Unstable Version](https://camo.githubusercontent.com/517d0b9c3ed123938191f291ab54127b7a1c501a347ced61755cf77525c29fb3/68747470733a2f2f706f7365722e707567782e6f72672f6d797a65726f312f796969322d736d7365722f762f756e737461626c65)](https://packagist.org/packages/myzero1/yii2-smser) [![License](https://camo.githubusercontent.com/a7882ae5815810c4fca17b72151e8cd779fb7d3618d10ae348beffb5418ca4a4/68747470733a2f2f706f7365722e707567782e6f72672f6d797a65726f312f796969322d736d7365722f6c6963656e7365)](https://packagist.org/packages/myzero1/yii2-smser)

Yii2 SMS extension （短信扩展）

包含接口：

- [中国云信](http://www.sms.cn/)
- [中国网建](http://www.smschinese.cn/)
- [商信通](http://www.sxtsms.com/)
- [云片网络](http://www.yunpian.com/)
- [云通讯](http://www.yuntongxun.com/)
- [螺丝帽](http://www.luosimao.com/)
- [腾讯云](https://cloud.tencent.com/document/product/382)

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/). Check the [composer.json](https://github.com/myzero1/yii2-smser/blob/master/composer.json) for this extension's requirements and dependencies.

To install, either run

```
$ php composer.phar require myzero1/yii2-smser "*"

```

or add

```
"myzero1/yii2-smser": "*"

```

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

Usage
-----

[](#usage)

```
return [
    'components' => [
        'smser' => [
            // 中国云信
            'class' => 'myzero1\smser\CloudSmser',
            'username' => 'username',
            'password' => 'password',
            'fileMode' => false
        ]
    ],
];
```

```
return [
    'components' => [
        'smser' => [
        'smser' => [
            // 腾讯云
            'class' => 'myzero1\smser\QcloudsmsSmser',
            'appid' => '1400280813', // appid
            'appkey' => '23e167badfc804d97d454e32e258b781', // 请替换成您的apikey
            'smsSign' => '玩索得',
            'expire' => '5',//分钟
        ],
        ]
    ],
];
```

OR

```
return [
    'components' => [
        'smser' => [
            // 云片网
            'class' => 'myzero1\smser\YunpianSmser',
            'apikey' => '9b11127a9701975c734b8aee81ee3526', // 请替换成您的apikey
            'fileMode' => false
        ]
    ],
];
```

```
Yii::$app->smser->send('15000000000', '短信内容');
```

```
// 发送模板短信
Yii::$app->smser->sendByTemplate('15000000000', ['123456'], 1);
```

License
-------

[](#license)

**yii2-smser** is released under the BSD 3-Clause License. See the bundled `LICENSE` for details.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 70.6% 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 ~231 days

Recently: every ~389 days

Total

8

Last Release

2385d ago

### Community

Maintainers

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

---

Top Contributors

[![daixianceng](https://avatars.githubusercontent.com/u/6077236?v=4)](https://github.com/daixianceng "daixianceng (24 commits)")[![myzero1](https://avatars.githubusercontent.com/u/22048203?v=4)](https://github.com/myzero1 "myzero1 (10 commits)")

---

Tags

pluginsmsyii2extensionsmser

### Embed Badge

![Health badge](/badges/myzero1-yii2-smser/health.svg)

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

###  Alternatives

[daixianceng/yii2-smser

Yii2 SMS extension

862.9k1](/packages/daixianceng-yii2-smser)[abhi1693/yii2-sms

Send Free Sms for Yii2

171.9k](/packages/abhi1693-yii2-sms)

PHPackages © 2026

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