costa92/yunpian-sms
云片网络 短信发送,基于Laravel5.1版本以上的插件。
26
Larablocks Analysis
costa92/yunpian-sms works with any PHP project: the latest release (1.3, Dec 12, 2016) doesn't depend on Laravel.
Recommendation checks
Not advisedNot advised: no release or commit in over 2 years.
- No release or commit in over 2 years
- No release in the last 12 months (last: Dec 12, 2016)
- 0 downloads a month (needs 10,000)
- 0 GitHub stars (needs 100)
State
Likely abandoned- No release or commit in over 2 years.
- Last stable release: Dec 12, 2016.
- No releases in the last 12 months.
- First released: Dec 12, 2016.
- 0 open issues on GitHub.
Data from Packagist and GitHub, checked by Larablocks on Dec 3, 2026.
| Install | |
|---|---|
composer require costa92/yunpian-sms |
|
| Latest Version: | 1.3 |
| License: | MIT |
| Last Updated: | Dec 12, 2016 |
| Links: | GitHub · Packagist |
Maintainer: costa92
yunpian-sms
本版本可以用于使用云片网络短信服务商、基于laravel5.1.*以上版本的系统集成短信发送功能。
安装
- 安装包文件
composer require costa92/yunpian-sms
配置
Laravel 应用
- 注册
ServiceProvider:
Costa92\YunpianSMS\YunpianSMSServiceProvider::class,
- 创建配置文件:
php artisan vendor:publish
-
请修改应用根目录下的
config/yunpian.php中对应的项即可; -
(可选)添加外观到
config/app.php中的aliases部分:
'YunpianSMS' => Costa92\YunpianSMS\Facades\YunpianSMS::class,
- 在 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
MIT
Related Packages
lbhurtado/sms
Driver-based SMS component in Laravel inspired by the tutorial of Orobo Lucky
10,794
0
alhaji-aki/laravel-sms
A package that allows developers integrate sms providers and provide a common ap...
6,642
2
Version History
| Version | Released | License |
|---|---|---|
| 1.3 | MIT | |
| 1.0 | MIT |