PHPackages                             luyisuifeng/aliyun-php-sdk-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. [API Development](/categories/api)
4. /
5. luyisuifeng/aliyun-php-sdk-sms

ActiveLibrary[API Development](/categories/api)

luyisuifeng/aliyun-php-sdk-sms
==============================

This is a composer/packagist fot Aliyun-Sms OpenAPI

v1.0.1(9y ago)66.6k2MITPHPPHP &gt;=5.3.0

Since Oct 28Pushed 9y ago2 watchersCompare

[ Source](https://github.com/luyisuifeng/aliyun-php-sdk-sms)[ Packagist](https://packagist.org/packages/luyisuifeng/aliyun-php-sdk-sms)[ Docs](https://github.com/luyisuifeng/aliyun-php-sdk-sms)[ RSS](/packages/luyisuifeng-aliyun-php-sdk-sms/feed)WikiDiscussions master Synced yesterday

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

aliyun-php-sdk-sms
==================

[](#aliyun-php-sdk-sms)

阿里云短信服务提供composer解决方案

install
=======

[](#install)

$ composer require luyisuifeng/aliyun-php-sdk-sms

发布v1.0.1版本，修复exception命名空间问题，增加demo
===================================

[](#发布v101版本修复exception命名空间问题增加demo)

\#demo use Aliyun\\Core\\Profile\\DefaultProfile;
use Aliyun\\Core\\DefaultAcsClient;
use Aliyun\\Core\\Exception\\ClientException;
use Aliyun\\Core\\Exception\\ServerException;
use Aliyun\\Core\\Regions\\Endpoint;
use Aliyun\\Core\\Regions\\EndpointProvider;
use Aliyun\\Core\\Regions\\EndpointConfig;
use Aliyun\\Core\\Sms\\Request\\V20160927\\SingleSendSmsRequest;
$iClientProfile = DefaultProfile::getProfile('cn-hangzhou', 'your accessKeyId', 'your accessSecret);
$client = new DefaultAcsClient($iClientProfile);
$config = new EndpointConfig();
$endpoint = new Endpoint('cn-hangzhou', $config-&gt;getRegionIds(), $config-&gt;getProductDomains());
$endpoints = array( $endpoint );
EndpointProvider::setEndpoints($endpoints);
$request = new SingleSendSmsRequest();
$request-&gt;setSignName('XXXX'); //签名名称
$request-&gt;setTemplateCode('SMS\_123456'); //模板id
$request-&gt;setRecNum('138xxx');//目标手机号
$request-&gt;setParamString("{"goodname":"商品名","specinfo":"商品属性"}");//模板变量，数字一定要转换为字符串
try {
$response = $client-&gt;getAcsResponse($request);
print\_r($response);
}
catch (ClientException $e) {
print\_r($e-&gt;getErrorCode());
print\_r($e-&gt;getErrorMessage());
}
catch (ServerException $e) {
print\_r($e-&gt;getErrorCode());
print\_r($e-&gt;getErrorMessage());
}

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity59

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

Total

2

Last Release

3523d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/16330527?v=4)[luyisuifeng](/maintainers/luyisuifeng)[@luyisuifeng](https://github.com/luyisuifeng)

---

Top Contributors

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

---

Tags

phpsdksmsaliyunopen-apiAliyun-Smsaliyun-php-sdk-sms

### Embed Badge

![Health badge](/badges/luyisuifeng-aliyun-php-sdk-sms/health.svg)

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

PHPackages © 2026

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