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

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

saviorlv/aliyun-dysms
=====================

Aliyun SMS SDK for PHP

1.0.1(7y ago)3334Apache-2.0PHPPHP &gt;=5.5.0

Since Sep 3Pushed 7y agoCompare

[ Source](https://github.com/sunmking/aliyun-dysms)[ Packagist](https://packagist.org/packages/saviorlv/aliyun-dysms)[ Docs](https://github.com/saviorlv/aliyun-dysms)[ RSS](/packages/saviorlv-aliyun-dysms/feed)WikiDiscussions master Synced 3d ago

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

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

[](#aliyun-dysms)

安装
--

[](#安装)

```
composer require "saviorlv/aliyun-dysms:dev-master"
```

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

```
{
    "require": {
       "saviorlv/aliyun-dysms":"dev-master"
    }
}
```

设置方法
----

[](#设置方法)

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

```
    use saviorlv\aliyun\Sms;
    $accessKeyId = '2w2w2';
    $accessKeySecret = '2w2w2w2w2w';
    $obj = new Sms($accessKeyId,$accessKeySecret);

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

    //批量

    $response = $obj->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

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community6

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

Every ~0 days

Total

2

Last Release

2810d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

aliyun-smslaraveloss-sdkphpyii2sdksmsaliyun

### Embed Badge

![Health badge](/badges/saviorlv-aliyun-dysms/health.svg)

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

###  Alternatives

[jjonline/aliyun-dysms-php-sdk

Aliyun SMS SDK for PHP

2197.2k](/packages/jjonline-aliyun-dysms-php-sdk)[curder/laravel-aliyun-sms

阿里云短信服务 - Laravel

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

阿里云短信扩展包

1815.3k](/packages/fastgoo-aliyun-sms)

PHPackages © 2026

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