PHPackages                             cdcchen/yii2-alidayu - 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. cdcchen/yii2-alidayu

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

cdcchen/yii2-alidayu
====================

alidayu development sdk

1.0.0(9y ago)12271BSD-4-ClausePHPPHP &gt;=5.4.0

Since Jun 14Pushed 9y ago2 watchersCompare

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

READMEChangelogDependencies (3)Versions (2)Used By (0)

yii2-alidayu
============

[](#yii2-alidayu)

配置组件
----

[](#配置组件)

```
'alidayu' => [
    'appKey' => 'xxx',
    'appSecret' => 'yyy',
],
```

发送短信
----

[](#发送短信)

```
/* @var \cdcchen\yii\alidayu\Client $client */
$client = Yii::$app->get('alidayu');
$response = $client->sendSms('手机号', '短信签名', '短信模板代码', '模板参数', '回传参数');
if ($response->isOK()) {
    // success data
    $data = $result->getData();
}
else {
    // error data
    $data = $result->getData();
}
```

> **手机号码** 如果为多个，使用数组方式；
> **模板参数** 具体根据模板要求；
> **回传参数** 为可选参数，具体根据业务需求；

查询短信日志
------

[](#查询短信日志)

```
/* @var \cdcchen\yii\alidayu\Client $client */
$client = Yii::$app->get('alidayu');
$response = $client->querySms('186xxxxxxxx', '日期', '当前页码', '每页条数', '流水号');
if ($response->isOK()) {
    // success data
    $data = $result->getData();
}
else {
    // error data
    $data = $result->getData();
}
```

> **日期** 格式：20160607；
> **当前页码** 从·q`1`开始；
> **每页条数** 默认`20`

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity58

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

3620d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

alidayu

### Embed Badge

![Health badge](/badges/cdcchen-yii2-alidayu/health.svg)

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

###  Alternatives

[dmstr/yii2-cookie-consent

Yii2 Cookie Consent Widget

1452.6k](/packages/dmstr-yii2-cookie-consent)

PHPackages © 2026

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