PHPackages                             gzdsx/sms-sdk - 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. gzdsx/sms-sdk

ActiveLibrary

gzdsx/sms-sdk
=============

PHP SMS SDK

1.1.0(3y ago)025MITPHPPHP ^7.0

Since Mar 29Pushed 3y ago1 watchersCompare

[ Source](https://github.com/gzdsx/sms-sdk)[ Packagist](https://packagist.org/packages/gzdsx/sms-sdk)[ RSS](/packages/gzdsx-sms-sdk/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

阿里云和腾讯云短信SDK
============

[](#阿里云和腾讯云短信sdk)

### 开始

[](#开始)

> composer require gzdsx/sms-sdk

### 注册APP

[](#注册app)

在应用入口处注册，如Laravel的AppSericeProvider的boot处

1.阿里云注册

```
SmsSdk::registerAliyun('your accessKeyId','accessSecret','默认签名','默认模版');
```

2.腾讯云注册

```
SmsSdk::registerTencentCloud('your secretId','your secretKey','默认SmsSdkAppId','默认签名','默认模版');
```

### 使用阿里云发送

[](#使用阿里云发送)

```
SmsSdk::aliyun()
    ->setPhoneNumbers('13800000000')
    ->setTemplateParam(['code'=>'123456'])
    ->send();
```

### 使用腾讯云发送

[](#使用腾讯云发送)

```
SmsSdk::tencentCloud()
    ->setPhoneNumbers('13800000000')
    ->setTemplateParam(['code'=>'123456'])
    ->send();
```

### 打赏作者

[](#打赏作者)

[![微信支付](https://camo.githubusercontent.com/27fea472adc2e2041940dfd46a7c0ca9ce41ad05ccb2a0ec5474b94be13584af/68747470733a2f2f73686f702e677a6473782e636e2f73746f726167652f696d6167652f323032332f30332f7a55344a7841475972616e614e5a354c496962717154356e6667493071544a7a6e4c307a566738662e6a7067)](https://camo.githubusercontent.com/27fea472adc2e2041940dfd46a7c0ca9ce41ad05ccb2a0ec5474b94be13584af/68747470733a2f2f73686f702e677a6473782e636e2f73746f726167652f696d6167652f323032332f30332f7a55344a7841475972616e614e5a354c496962717154356e6667493071544a7a6e4c307a566738662e6a7067)

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 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

1138d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/516a1402ec250146a1a792db0bba95db62c233305e7267193a8f0567be3d495f?d=identicon)[贵州大师兄](/maintainers/%E8%B4%B5%E5%B7%9E%E5%A4%A7%E5%B8%88%E5%85%84)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/gzdsx-sms-sdk/health.svg)

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

###  Alternatives

[alibabacloud/sdk

Alibaba Cloud SDK for PHP - Easier to Use Alibaba Cloud in your PHP project

5282.1M45](/packages/alibabacloud-sdk)[overtrue/laravel-qcloud-federation-token

QCloud COS FederationToken generator for Laravel.

178.5k](/packages/overtrue-laravel-qcloud-federation-token)[overtrue/laravel-qcloud-content-audit

腾讯云内容安全（文字图片内容审核）服务

458.2k](/packages/overtrue-laravel-qcloud-content-audit)[qcloud/vod-sdk-v5

VOD SDK For PHP

1150.4k1](/packages/qcloud-vod-sdk-v5)

PHPackages © 2026

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