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

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

lkk/yii2-smser
==============

Yii2 SMS extension

016

Since Jul 28Pushed 9y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

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

[](#yii2-smser)

Yii2 SMS extension （短信扩展）

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

[](#installation)

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

To install, either run

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

```

or add

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

```

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

Usage
-----

[](#usage)

```
return [
    'components' => [
        'smser' => [
            'class' => 'lkk\smser\HuyiSmser',
            'username' => 'username',
            'password' => 'password',
        ]
    ],
];
```

OR

```
return [
    'components' => [
        'smser' => [
            'class' => 'lkk\smser\HuyiSmser',
            'apikey' => 'wcJRH2mh7BbfIsaWLD4QCbllCaVpZNIp', // 请替换成您的apikey
        ]
    ],
];
```

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

License
-------

[](#license)

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

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

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/35482c8e362eadf1789bfca0a0ff4f3c403c8740c3cdfff402cbde9b6c6f88f4?d=identicon)[lkk](/maintainers/lkk)

---

Top Contributors

[![lkk](https://avatars.githubusercontent.com/u/10077392?v=4)](https://github.com/lkk "lkk (5 commits)")

### Embed Badge

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

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

###  Alternatives

[zeroseven/z7-semantilizer

Simplify your semantic heading structure.

1055.0k1](/packages/zeroseven-z7-semantilizer)

PHPackages © 2026

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