PHPackages                             oakhope/aliyun-sms - 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. oakhope/aliyun-sms

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

oakhope/aliyun-sms
==================

阿里云短信发送sdk封装

v2.0.0(8y ago)52773MITPHPPHP &gt;=5.6.0

Since Sep 11Pushed 4mo ago1 watchersCompare

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

READMEChangelog (1)DependenciesVersions (4)Used By (0)

AliyunSMS
---------

[](#aliyunsms)

阿里云短信发送sdk封装

更新记录
----

[](#更新记录)

- 2018-03-19 `Release v2.0.0` 采用阿里新版SDK，**不兼容v1.0.0**以前版本的代码调用
- 2018-01-12 `Release v1.0.0` 兼容测试版；采用阿里新版SDK以应对阿里于18年1月22日停止对旧版短信服务的支持
- 2017-07-06 `Release v0.0.8` 测试版;目前仅支持单条短信发送;一点优化及改bug
- 2017-06-02 `Release v0.0.1` 测试版发布

安装
--

[](#安装)

```
composer require oakhope/aliyun-sms
```

### 使用

[](#使用)

#### v2.0.0

[](#v200)

```
$aliyunSms = new \Oakhope\AliyunSMS('accessId', 'accessKey', 'signName');

$aliyunSms->sendOne('templateCode', 'phone', 'code', 'product');
```

#### v1.0.0及以前版本

[](#v100及以前版本)

```
$aliyunSms = new \Oakhope\AliyunSMS('accessId', 'accessKey', 'endPoint', 'topicName', 'signName');

$aliyunSms->sendOne('templateCode', 'phone', ['paramA' => 'valueA', 'paramB' => 'valueB']);
```

License
-------

[](#license)

除 “版权所有（C）阿里云计算有限公司” 的代码文件外，遵循 [MIT license](http://opensource.org/licenses/MIT) 开源

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance50

Moderate activity, may be stable

Popularity18

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity60

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

Total

3

Last Release

3025d ago

Major Versions

v0.0.8 → v1.0.02018-01-12

v1.0.0 → v2.0.02018-03-19

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

aliyun-smssmsaliyunAliyunSMS

### Embed Badge

![Health badge](/badges/oakhope-aliyun-sms/health.svg)

```
[![Health](https://phpackages.com/badges/oakhope-aliyun-sms/health.svg)](https://phpackages.com/packages/oakhope-aliyun-sms)
```

###  Alternatives

[jjonline/aliyun-dysms-php-sdk

Aliyun SMS SDK for PHP

2198.9k](/packages/jjonline-aliyun-dysms-php-sdk)[fastgoo/aliyun-sms

阿里云短信扩展包

1815.3k](/packages/fastgoo-aliyun-sms)[curder/laravel-aliyun-sms

阿里云短信服务 - Laravel

113.6k](/packages/curder-laravel-aliyun-sms)

PHPackages © 2026

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