PHPackages                             zoe/yii2-telsmser - 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. zoe/yii2-telsmser

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

zoe/yii2-telsmser
=================

SMS extension for yii2

v1.1(10y ago)06BSD-3-ClausePHP

Since Sep 10Pushed 10y ago1 watchersCompare

[ Source](https://github.com/liangzoe/yii2-smser)[ Packagist](https://packagist.org/packages/zoe/yii2-telsmser)[ RSS](/packages/zoe-yii2-telsmser/feed)WikiDiscussions master Synced 1mo ago

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

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

[](#yii2-smser)

Send text messages with api of SMS platform

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

[](#installation)

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

Either run

```
php composer.phar require liangzoe/yii2-mobilesmser "*"

```

or add

```
"liangzoe/yii2-mobilesmser": "*"

```

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

Usage
-----

[](#usage)

1. Let 's add into Component config in your main config file

```
'smser' => [
    'smser' => [
       	  'class' => 'liangzoe\mobilesmser\TextSmser',
	        'url' => '',
	        'username' => '',
	        'password' => '',
    ],
],

```use in phpfile
Yii::$app->smser->sendSMS('手机号码', '短信内容');
```

'''reference in the view'''
   Countdown with jquery

   var wait=60;

		function time(o) {//o为按钮对象

			if (wait == 0) {

				o.removeAttribute("disabled");

				o.value="免费获取短信动态码";

				wait = 60;

			} else {

				o.setAttribute("disabled", true); //倒计时中，禁止点击按钮

				o.value= wait + "秒后重新发送";

				wait--;

				setTimeout(function() { time(o);}, 1000);

			}

```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

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

Total

2

Last Release

3898d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ae183269cc09383235bd7fce6415fe0332ec76ba58b756a7b69fec28c3abf89e?d=identicon)[zoeliang](/maintainers/zoeliang)

---

Top Contributors

[![liangzoe](https://avatars.githubusercontent.com/u/14191672?v=4)](https://github.com/liangzoe "liangzoe (24 commits)")

---

Tags

yii2extensionsmser

### Embed Badge

![Health badge](/badges/zoe-yii2-telsmser/health.svg)

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

###  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)
