Package Data | |
---|---|
Maintainer Username: | imhu |
Maintainer Contact: | cwhuwei@qq.com (imhu) |
Package Create Date: | 2015-08-28 |
Package Last Update: | 2015-08-28 |
Home Page: | |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-12-14 15:03:17 |
Package Statistics | |
---|---|
Total Downloads: | 22 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 5 |
Total Watchers: | 2 |
Total Forks: | 1 |
Total Open Issues: | 0 |
云之讯 短信Api 修改自:hardywen/ucpaas-sms 在这基础上升级到了laravel5
#安装 在composer.json 添加
imhu/ucpaas-sms: '~1.0'
运行 composer update
在 app/config/app.php
的providers数组里加入
Hardywen\UcpaasSms\UcpaasSmsServiceProvider::class,
aliases 数组里加入
'UcpaasSms' => Hardywen\UcpaasSms\Facade\UcpaasSms::class,
运行
php artisan vendor:publish
去 app/config/ucpaas.php
配置
#使用 发送手机短信
UcpaasSms::templateSMS('9635', '123456,3', '138xxxxxx')
发送语音验证码
UcpaasSms::voiceCode('123123','138xxxx')