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

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

steveak/sms
===========

短信通道

v1.0.1(8y ago)011MITPHPPHP &gt;=5.3.3

Since Sep 15Pushed 8y ago1 watchersCompare

[ Source](https://github.com/xubing6243/sms)[ Packagist](https://packagist.org/packages/steveak/sms)[ Docs](https://www.phalapi.net/)[ RSS](/packages/steveak-sms/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (3)Used By (0)

短信通道聚合
======

[](#短信通道聚合)

顾名思义，可聚合多个短信通道，支持短信验证码的语音发送

使用composer安装
------------

[](#使用composer安装)

```
"steveak/sms": "1.*"

```

使用方式
----

[](#使用方式)

### 在PhalApi中使用，支持2.x

[](#在phalapi中使用支持2x)

```
// 在di.php中注册
$di->sms = new \SteveAK\Sms\App($di->config->get('app.sms'));

// 在app.php中配置
'sms' => array(
    'channel' => 'yimei',
    'sign' => '短信签名',
    'yimei' => array(
        'cdkey' => 'xxx-xxx-xxx-xxx',
        'password' => '123456',
        'sessionKey' => '123456'
    ),
    'luosimao' => array(
        'key' => 'xxxx',
        'voicekey' => 'xxxx'
    ),
),

// 以上2步完成以后即可发送短信操作
// 发送短信
$result = $di->sms->send('138xxxxxxxx', '短信内容');
var_dump($result);

// 发送语音验证码
$result = $di->sms->voice('138xxxxxxxx', 123456);
var_dump($result);

// 根据业务需要可以自由切换通道
$result = $di->sms->send('138xxxxxxxx', '短信内容', 'luosimao');

```

整合通道
----

[](#整合通道)

已整合的通道，没有打广告的意思，以下的通道都是几年来用的比较好的

```
螺丝帽：https://luosimao.com/ 上海的一家短信公司，可群发
亿美软通：业务QQ（2460818140），量大可申请独立通道，我们自己公司也用此通道，现在共享出来

```

可根据自己的需求来整合需要的通道，也可以联系steveak(7579476)定制需要的通道

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

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

Total

2

Last Release

3256d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

smsphalapiphalapi-sms

### Embed Badge

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

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

###  Alternatives

[php-smpp/php-smpp

PHP-based SMPP client lib

236206.3k8](/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.

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

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

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

Converts GSM 03.38 strings to and from UTF-8

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

A generic SMS client library. Supports multiple swappable drivers.

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

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

3725.8k](/packages/midnite81-geolocation)

PHPackages © 2026

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