PHPackages                             sofire/qsms - 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. sofire/qsms

ActiveLibrary[API Development](/categories/api)

sofire/qsms
===========

腾讯云Qcloud短信服务第三方SDK

v1.1.0(9y ago)014MITPHPPHP &gt;=5.1

Since Oct 10Pushed 9y ago1 watchersCompare

[ Source](https://github.com/sofire/qsms)[ Packagist](https://packagist.org/packages/sofire/qsms)[ Docs](https://github.com/sofire/qsms)[ RSS](/packages/sofire-qsms/feed)WikiDiscussions master Synced 2mo ago

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

Update
======

[](#update)

2017年01月02日： 参考 根据腾讯云 v5版本 的API做的修改 添加群发接口

简述
==

[](#简述)

腾讯云Qcloud短信服务第三方SDK

用法
==

[](#用法)

```
use Wenpeng\Qsms\Client;
$client = new Client($appID, $appKey);

```

单发短信
----

[](#单发短信)

```
use Wenpeng\Qsms\Request\Single;
$sms = new Signle($client, 0);

```

### 单发普通短信

[](#单发普通短信)

```
use Wenpeng\Qsms\Request\Single;
$sms = new Signle($client, 0);
$sms->target('18800001111', '86');
$response = $sms->normal('这是测试短信内容');

```

```
{
    "result": "0", //0表示成功(计费依据)，非0表示失败
    "errmsg": "", //result非0时的具体错误信息
    "ext": "some msg", //用户的session内容，腾讯server回包中会原样返回
    "sid": "xxxxxxx", //标识本次发送id
    "fee": 1 //短信计费的条数
}

```

### 单发模板短信

[](#单发模板短信)

```
$sms->target('18800001111', '86');
// 短信正文模板编号 1000, 短信正文参数 ['123456', 30]
$response = $sms->template(1000, ['123456', 30]);

```

```
{
    "result": "0", //0表示成功(计费依据)，非0表示失败
    "errmsg": "", //result非0时的具体错误信息
    "ext": "some msg", //用户的session内容，腾讯server回包中会原样返回
    "sid": "xxxxxxx", //标识本次发送id
    "fee": 1 //短信计费的条数
}

```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 90% 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 ~21 days

Total

5

Last Release

3419d ago

### Community

---

Top Contributors

[![wenpeng](https://avatars.githubusercontent.com/u/11190229?v=4)](https://github.com/wenpeng "wenpeng (9 commits)")[![sofire](https://avatars.githubusercontent.com/u/1177330?v=4)](https://github.com/sofire "sofire (1 commits)")

### Embed Badge

![Health badge](/badges/sofire-qsms/health.svg)

```
[![Health](https://phpackages.com/badges/sofire-qsms/health.svg)](https://phpackages.com/packages/sofire-qsms)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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