PHPackages                             axguowen/baidubce-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. axguowen/baidubce-sms

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

axguowen/baidubce-sms
=====================

baidubce php sdk sms package

v2.0.1(2y ago)0941Apache-2.0PHP

Since Mar 1Pushed 1y ago1 watchersCompare

[ Source](https://github.com/axguowen/baidubce-sms)[ Packagist](https://packagist.org/packages/axguowen/baidubce-sms)[ RSS](/packages/axguowen-baidubce-sms/feed)WikiDiscussions master Synced today

READMEChangelog (3)Dependencies (1)Versions (4)Used By (1)

BaiduBce Sms PHP SDK
====================

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

百度智能云短信SDK

安装
--

[](#安装)

```
composer require axguowen/baidubce-sms

```

创建CdnClient
-----------

[](#创建cdnclient)

```
use BaiduBce\Services\Sms\SmsClient;

global $SMS_TEST_CONFIG;
$client = new SmsClient($SMS_TEST_CONFIG);

// 手机号,支持单个或多个手机号，多个手机号之间以英文逗号分隔，e.g. 13800138000,13800138001，一次请求最多支持200个手机号
$mobile = '17615151711';
// 模板编码
$template = 'sms-tmpl-VlYLOm62611';
// 签名
$signatureId = 'sms-sign-yxveGQ86111';
// 模板内容
$contentVar = array(
    'content' => '验证码有效期5min'
);

/**
 *
 * 响应数据格式
 *
 *{
 *    "requestId":"ac17060505d4453ca1c9a7c5be82042b",
 *    "code":"1000",
 *    "message":"成功",
 *    "data":[
 *        {
 *            "code":"1000",
 *            "message":"成功",
 *            "mobile":"13800138000",
 *            "messageId":"6edf7cffa7434d2e8335a0d021ee2b2f"
 *        }
 *    ]
 *}
 */
$response = $client->sendMessage($mobile, $signatureId, $template, $contentVar);
print_r($response);
```

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance33

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity48

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

Total

3

Last Release

785d ago

Major Versions

v0.9.18 → v2.0.02023-08-19

### Community

Maintainers

![](https://www.gravatar.com/avatar/5bb2b3388238042a25cf42dc44e5ff84adc241510354abae9e91573556753205?d=identicon)[axguowen](/maintainers/axguowen)

---

Top Contributors

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

---

Tags

smsbaidubce

### Embed Badge

![Health badge](/badges/axguowen-baidubce-sms/health.svg)

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

###  Alternatives

[php-smpp/php-smpp

PHP-based SMPP client lib

236203.5k8](/packages/php-smpp-php-smpp)[instasent/sms-counter-php

SMS Counter PHP Class Library which detects encoding of an SMS message text, counts the characters as per the encoding and gives page limit information.

501.4M4](/packages/instasent-sms-counter-php)[alexandr-mironov/php-smpp

PHP SMPP client lib, fork of onlinecity/php-smpp

5072.0k](/packages/alexandr-mironov-php-smpp)[benmorel/gsm-charset-converter

Converts GSM 03.38 strings to and from UTF-8

16477.7k](/packages/benmorel-gsm-charset-converter)[matthewbdaly/sms-client

A generic SMS client library. Supports multiple swappable drivers.

2293.6k2](/packages/matthewbdaly-sms-client)[midnite81/geolocation

A laravel package which wraps the IP Info DB and IP2Location Services

3725.6k](/packages/midnite81-geolocation)

PHPackages © 2026

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