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

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

emnabs/yii2-smser
=================

Yii2 Smser Component

1.0.0(8y ago)124BSD 3-ClausePHP

Since May 31Pushed 8y ago1 watchersCompare

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

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Yii2 Smser Component
====================

[](#yii2-smser-component)

Smser is a component based sms solution for Yii2.It is released under the BSD 3-Clause license.

[![Latest Stable Version](https://camo.githubusercontent.com/213e11cf10f02a7a54f7c7694df6e95c39c34588b6d5478820d912898d28f870/68747470733a2f2f706f7365722e707567782e6f72672f656d6e6162732f796969322d736d7365722f762f737461626c652e706e67)](https://packagist.org/packages/emnabs/yii2-smser)[![Total Downloads](https://camo.githubusercontent.com/a023104afd687cc1d017e502d600a9501f0877f459fde95778cd5d02104e7b5c/68747470733a2f2f706f7365722e707567782e6f72672f656d6e6162732f796969322d736d7365722f646f776e6c6f6164732e706e67)](https://packagist.org/packages/emnabs/yii2-smser)[![License](https://camo.githubusercontent.com/199c76843d42a7b45afd82d938f2659aae0575e0f9f56fe5e95be18791f59424/68747470733a2f2f706f7365722e707567782e6f72672f656d6e6162732f796969322d736d7365722f6c6963656e73652e706e67)](https://packagist.org/packages/emnabs/yii2-smser)

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist emnabs/yii2-smser "*"

```

or add

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

to the require section of your composer.json.

Usage
-----

[](#usage)

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

```
//configure component:
return [
    //....
    'components' => [
	//....
        'smser' => [
            'class' => 'emhome\smser\Smser',
        ],
	//....
    ]
];
```

Usage example

```
Yii::$app->smser->compose()
	->setMobile(['手机号码'])
        ->setContent('短信内容')
        ->send();
```

包含接口
----

[](#包含接口)

- [漫道科技](http://www.zucp.net/)
- [中国云信](http://www.sms.cn/)
- [中国网建](http://www.smschinese.cn/)
- [商信通](http://www.sxtsms.com/)
- [云片网络](http://www.yunpian.com/)
- [云通讯](http://www.yuntongxun.com/)
- [螺丝帽](http://www.luosimao.com/)

License
-------

[](#license)

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

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

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

Unknown

Total

1

Last Release

3271d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/053076ccac4c1459b62ffc1848e97bddf36a848a0e2e0c1c7482cb869e4d817a?d=identicon)[emnabs](/maintainers/emnabs)

---

Top Contributors

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

---

Tags

yii2extensionsmser

### Embed Badge

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

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

###  Alternatives

[daixianceng/yii2-smser

Yii2 SMS extension

862.9k1](/packages/daixianceng-yii2-smser)[dmstr/yii2-cookie-consent

Yii2 Cookie Consent Widget

1452.6k](/packages/dmstr-yii2-cookie-consent)[richardfan1126/yii2-js-register

Yii2 widget to register JS into view

1357.2k7](/packages/richardfan1126-yii2-js-register)

PHPackages © 2026

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