PHPackages                             liasica/yii2-clsms - 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. [Mail &amp; Notifications](/categories/mail)
4. /
5. liasica/yii2-clsms

ActiveYii2-extension[Mail &amp; Notifications](/categories/mail)

liasica/yii2-clsms
==================

创蓝文化短信网关接口

1.1.0(10y ago)111MITPHP

Since May 19Pushed 10y agoCompare

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

READMEChangelog (4)Dependencies (2)Versions (5)Used By (0)

创蓝文化短信接口
========

[](#创蓝文化短信接口)

创蓝文化短信网关接口

[![Latest Stable Version](https://camo.githubusercontent.com/47dc56c037fb7038e8a493b55869760d13ee6e3d28270df23f33cd9e507feccd/68747470733a2f2f706f7365722e707567782e6f72672f6c6961736963612f796969322d636c736d732f762f737461626c65)](https://packagist.org/packages/liasica/yii2-clsms) [![Total Downloads](https://camo.githubusercontent.com/cd40d14f0a2faebf6158b6e99c099d6901bc096095a755bd394d85d4e406ad7f/68747470733a2f2f706f7365722e707567782e6f72672f6c6961736963612f796969322d636c736d732f646f776e6c6f616473)](https://packagist.org/packages/liasica/yii2-clsms) [![Latest Unstable Version](https://camo.githubusercontent.com/be8ef73b93ed93bbf0fef0940371658ab75b7f238caabf244e2675e244d0f378/68747470733a2f2f706f7365722e707567782e6f72672f6c6961736963612f796969322d636c736d732f762f756e737461626c65)](https://packagist.org/packages/liasica/yii2-clsms) [![License](https://camo.githubusercontent.com/49759727a3aaa6748db7adbecbf5413fe5bdeb31d9d8ae001200ab98f62b48c9/68747470733a2f2f706f7365722e707567782e6f72672f6c6961736963612f796969322d636c736d732f6c6963656e7365)](https://packagist.org/packages/liasica/yii2-clsms)

版本
--

[](#版本)

```
dev：开发版，bug较多
release：正式发布版，bug较少

```

安装
--

[](#安装)

使用 [composer](http://getcomposer.org/download/) 进行安装：

直接运行

```
php composer.phar require --prefer-dist liasica/yii2-clsms "*"

```

or

```
composer require --prefer-dist liasica/yii2-clsms "*"

```

或者添加

```
"liasica/yii2-clsms": "*"

```

到你项目的 `composer.json` 中.

使用方法
----

[](#使用方法)

1.配置

```
'components' => [
  ...
  'clsms'        => [
    'class'        => 'liasica\clsms\Sdk',
    'account'      => 'your account',
    'pswd'         => 'your password',
    'sendUrl'      => 'your HttpSendSM',
    'batchSendUrl' => 'your HttpBatchSendSM',
    'signature'    => 'your signature',
    'tpl1'         => 'your tpl1',
    'tpl2'         => 'your tpl2',
    'tpl3'         => 'your tpl3'
  ],
]
```

2.发送消息

```
$clsms        = Yii::$app->clsms;
$clsms->code  = 'your code';
$clsms->phone = 'your phone number';
$clsms->sendMessage($clsms->tpl1, TRUE);
```

3.获取发送的code

```
$clsms        = Yii::$app->clsms;
$clsms->phone = 'your phone';
$codeArr      = $clsms->getCode();
var_dump($codeArr);
```

反馈或者贡献代码
--------

[](#反馈或者贡献代码)

您可以在[这里](https://github.com/liasica/yii2-clsms/issues)给我提出在使用中碰到的问题或Bug. 我会在第一时间回复您并修复.

您可以发送邮件`magicrolan@qq.com`或`magicrolan@gmail.com`也可以加我QQ`100408045`给我并且说明您的问题.

如果你有更好代码实现,请fork项目并发起您的pull request.我会及时处理. 感谢!

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity66

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

Total

4

Last Release

3690d ago

Major Versions

0.1.0 → 1.0.02015-05-19

### Community

Maintainers

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

---

Top Contributors

[![liasica](https://avatars.githubusercontent.com/u/671431?v=4)](https://github.com/liasica "liasica (12 commits)")

---

Tags

smsyii2extensionchuanglan

### Embed Badge

![Health badge](/badges/liasica-yii2-clsms/health.svg)

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

###  Alternatives

[nterms/yii2-mailqueue

Email queue component for yii2 that works with yii2-swiftmailer.

87129.2k2](/packages/nterms-yii2-mailqueue)[boundstate/yii2-mailgun

Mailgun integration for the Yii framework

28160.6k](/packages/boundstate-yii2-mailgun)[odaialali/yii2-toastr

This is the Toastr extension for Yii 2. It encapsulates Toastr plugin in terms of Yii widgets, and makes ajax notification easy to implement.

1486.3k](/packages/odaialali-yii2-toastr)

PHPackages © 2026

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