PHPackages                             l57t7q/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. l57t7q/aliyun-sms

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

l57t7q/aliyun-sms
=================

Aliyun SMS SDK for PHP

261PHP

Since Dec 22Pushed 8y ago1 watchersCompare

[ Source](https://github.com/siyun7/AliyunSms)[ Packagist](https://packagist.org/packages/l57t7q/aliyun-sms)[ RSS](/packages/l57t7q-aliyun-sms/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

介绍
==

[](#介绍)

阿里短信，自用

- 安装 `composer require l57t7q/aliyun-sms dev-master`

基于laravel框架的使用方法
----------------

[](#基于laravel框架的使用方法)

- 加载 在config/app的providers中添加 `L57t7q\AliyunSms\ServiceProvider::class`

同时，可以选择性添加aliases

控制台运行: `php artisan vendor:publish`

根据新增的`aliyunsms.php` 文件，在.env文件中添加环境变量：

```
ALIYUN_SMS_AK=your access key
ALIYUN_SMS_AS=your secret key
ALIYUN_SMS_SIGN_NAME=sign name

```

- 使用

```
$AliyunSms = new AliyunSms();
$response = $AliyunSms->sendSms('phone number', 'SMS_code', ['name'=> 'value in your template']);
//dump($response);

```

非laravel框架的使用方法
---------------

[](#非laravel框架的使用方法)

- 加载方式通过composer，不变
- 使用样例代码如下：

```
$config = [
        'access_key' => 'your access key',
        'access_secret' => 'your access secret',
        'sign_name' => 'your sign name',
    ];

    $aliSms = new L57t7q\AliyunSms\AliyunSms();
    $response = $sms->sendSms('phone number', 'tempplate code', ['name'=> 'value in your template'], $config);

```

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

aliyun-smsdayu-sms-notificationslaravelphp7

### Embed Badge

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

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

###  Alternatives

[cedaro/satispress

Generate a Composer repository from installed WordPress plugins and themes.

56434.6k](/packages/cedaro-satispress)[fedemotta/yii2-widget-datatables

DataTables widget for Yii2

34182.9k1](/packages/fedemotta-yii2-widget-datatables)

PHPackages © 2026

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