PHPackages                             len/sms-extend - 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. [Queues &amp; Workers](/categories/queues)
4. /
5. len/sms-extend

ActiveLibrary[Queues &amp; Workers](/categories/queues)

len/sms-extend
==============

This is just an extension package for sending SMS

v1.2.2(6y ago)01.4k1MITPHPPHP &gt;=5.6CI failing

Since Jul 2Pushed 6y ago1 watchersCompare

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

READMEChangelog (10)Dependencies (2)Versions (13)Used By (0)

SMS EXTEND
==========

[](#sms-extend)

📲 一款满足你的多种发送需求的短信发送组件

特点
--

[](#特点)

1. 支持多家服务商
2. 一套写法兼容所有平台
3. 简单配置即可灵活增加服务商
4. 统一的返回格式
5. 支持白名单
6. 更多等你去发现与改进

平台支持
----

[](#平台支持)

- [253云通讯（创蓝）](https://www.253.com/)
- [云片](https://www.yunpian.com/)
- 后续多平台支持待完善......

环境需求
----

[](#环境需求)

- PHP &gt;= 5.6

安装
--

[](#安装)

```
$ composer require "len/sms-extend"
```

使用
--

[](#使用)

1. 在config目录下创建sms.php 文件，需运行以下命令：

```
$ php artisan vendor:publish
该命令会弹出选项，选择（Provider: Len\SmsExtend\Providers\SmsExtendServiceProvider）选项,即创建成功

```

2. 在config/sms.php配置文件里面，配置短信平台的账号等相关信息
3. 调用SmsExtend发送短信：

```
use Len\SmsExtend\SmsExtend;

$mobile_phone = "13788889999";
$message      = "短信验证码是：000000";
$gatewayName = "网关名称";//以sms.php里面配置的网关为准，不传则取默认网关
$result       = SmsExtend::send($mobile_phone, $message, $gatewayName);
```

4. 关于发送短信返回数据结构及说明：

```
{
    "code":0,
    "message":"success",
    "data":{}
}
code:状态码，大于0标识返回发送失败,反之0即表示发送成功
message:发送失败时对应的错误内容提示
data:短信服务商返回的对应数据

```

关于支持平台的配置说明
-----------

[](#关于支持平台的配置说明)

### 253云通讯（创蓝）

[](#253云通讯创蓝)

```
'chuanglan' => [
    'account'  => '', //调用发送短信API账号
    'password' => '', //调用发送短信API密码
]

```

### 云片

[](#云片)

```
'yunpian' => [
    'apikey'  => '', //平台key
]

```

###  Health Score

30

—

LowBetter than 65% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity64

Established project with proven stability

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

Recently: every ~34 days

Total

12

Last Release

2286d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/107fc2cfb779bd27b195b1646df54a8859fc2fbbf41eb83bd1be1ae835470935?d=identicon)[len416](/maintainers/len416)

---

Top Contributors

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

---

Tags

messagephplaravelsms

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[nahid/talk

Talk is a Laravel based realtime messaging, chatting and conversation system. It helps to develop users messaging, chatting and conversations in easy way.

1.6k58.1k4](/packages/nahid-talk)[ellaisys/aws-cognito

AWS Cognito package that allows Auth and other related features using the AWS SDK for PHP

120220.7k1](/packages/ellaisys-aws-cognito)[fotografde/cakephp-sms

SMS Plugin for CakePHP

1273.2k](/packages/fotografde-cakephp-sms)[baklysystems/laravel-chat-messenger

Laravel chat package

121.8k](/packages/baklysystems-laravel-chat-messenger)

PHPackages © 2026

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