PHPackages                             jinowom/yii2-dysms - 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. jinowom/yii2-dysms

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

jinowom/yii2-dysms
==================

Aliyun SMS SDK for Yii2

v1.1.4(5y ago)1141Apache-2.0PHPPHP &gt;=5.5.0

Since Jan 10Pushed 5y agoCompare

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

READMEChangelogDependencies (1)Versions (2)Used By (1)

yii2-aliyun-dysms
=================

[](#yii2-aliyun-dysms)

安装
--

[](#安装)

```
composer require "jinowom/yii2-dysms:dev-master"
```

> or添加下列代码在composer.json文件中并执行composer update 操作

```
{
    "require": {
       "jinowom/yii2-dysms":"dev-master"
    }
}
```

设置方法
----

[](#设置方法)

#### 全局使用

[](#全局使用)

> 在config/main.php配置文件中定义component配置信息

```
'components' => [
  .....
  'aliyun' => [
      'class' => 'jinowom\aliyun\Sms',
      'accessKeyId' => '123455',
      'accessKeySecret' => '122345666'
    ],
  ....
]
```

> 代码中调用（调用短信发送接口示例）

```
// 单条发送
$response = Yii::$app->aliyun->sendSms(
            "孙坤峰", // 短信签名
            "SMS_76350132", // 短信模板编号
            "136*****134", // 短信接收者
            Array(  // 短信模板中字段的值
                "code"=>"12345",
                "product"=>"dsd"
            ),
            "123"
        );
        print_r($response);

//批量发送

$response = Yii::$app->aliyun->sendBatchSms(
            array("孙坤峰","孙坤峰"), // 短信签名
            "SMS_76350132", // 短信模板编号
            array("136*****134","180*****459"), // 短信接收者
            array(array(  // 短信模板中字段的值
                "code"=>"12345",
                "product"=>"dsd"
            ),array(  // 短信模板中字段的值
                "code"=>"123456",
                "product"=>"dsd"
            )),
            "123"
        );
//批量发送 签名、手机号、模板字段 数组长度必须相等

如上所示 180*******259收到的短信 签名是"孙坤峰" 内容为  123456
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity48

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1948d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3b263a1a85f4ed56baa2458ee30abe2a215f2acec53715c57c3bacc91693de4a?d=identicon)[charleslee](/maintainers/charleslee)

---

Top Contributors

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

---

Tags

sdksmsyii2aliyun

### Embed Badge

![Health badge](/badges/jinowom-yii2-dysms/health.svg)

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

###  Alternatives

[saviorlv/yii2-dysms

Aliyun SMS SDK for Yii2

1316.5k1](/packages/saviorlv-yii2-dysms)

PHPackages © 2026

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