PHPackages                             costa92/yunpian-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. [Mail &amp; Notifications](/categories/mail)
4. /
5. costa92/yunpian-sms

ActivePackage[Mail &amp; Notifications](/categories/mail)

costa92/yunpian-sms
===================

云片网络 短信发送,基于Laravel5.1版本以上的插件。

1.3(9y ago)026MITPHP

Since Dec 12Pushed 9y ago1 watchersCompare

[ Source](https://github.com/costa92/yunpian-sms)[ Packagist](https://packagist.org/packages/costa92/yunpian-sms)[ Docs](https://github.com/costa92/yunpian-sms)[ RSS](/packages/costa92-yunpian-sms/feed)WikiDiscussions master Synced yesterday

READMEChangelog (2)DependenciesVersions (3)Used By (0)

yunpian-sms
===========

[](#yunpian-sms)

> 本版本可以用于使用[云片网络短信服务商](http://www.yunpian.com/)、基于laravel5.1.\*以上版本的系统集成短信发送功能。

安装
--

[](#安装)

1. 安装包文件

```
composer require costa92/yunpian-sms
```

配置
--

[](#配置)

### Laravel 应用

[](#laravel-应用)

1. 注册 `ServiceProvider`:

```
Costa92\YunpianSMS\YunpianSMSServiceProvider::class,
```

2. 创建配置文件：

```
php artisan vendor:publish
```

3. 请修改应用根目录下的 `config/yunpian.php` 中对应的项即可；
4. （可选）添加外观到 `config/app.php` 中的 `aliases` 部分:

```
'YunpianSMS' => Costa92\YunpianSMS\Facades\YunpianSMS::class,
```

5. 在 ENV 中配置以下选项：

```
SMS_API_KEY=xxx      // 云片的秘钥
SMS_SEND_URL=xxx    //发短信的api
SMS_SEND_TEXT=xxx  //发送的内容，验证码用@代替  ge：【xxx】您的验证码是@。如非本人操作，请忽略本短信
```

6.使用

```
/*
* 参数 phone  可以是个string字符串或array字符串群发
* 参数 code 可用为空，也可用不为空，
*
*/

\YunpianSMS::sendSMS($phone,$code);
```

License
-------

[](#license)

MIT

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity64

Established project with proven stability

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

3488d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8148c7f8ba4894af278e4a028c6efb32f14b4c63dd4749c969245c4b55eb06e3?d=identicon)[costa92](/maintainers/costa92)

---

Tags

laravelsmsyunpian

### Embed Badge

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

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

###  Alternatives

[tzsk/sms

A robust and unified SMS gateway integration package for Laravel, supporting multiple providers.

319270.8k6](/packages/tzsk-sms)[matthewbdaly/laravel-sms

A Laravel and Lumen integration for matthewbdaly/sms-client to enable sending SMS messages

3529.8k](/packages/matthewbdaly-laravel-sms)[ipecompany/smsirlaravel

Official Sms.ir Laravel Package

1810.3k1](/packages/ipecompany-smsirlaravel)

PHPackages © 2026

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