Package Data | |
---|---|
Maintainer Username: | hardywen |
Maintainer Contact: | hardy.wen@foxmail.com (HardyWen) |
Package Create Date: | 2015-07-13 |
Package Last Update: | 2016-02-16 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-12 15:01:39 |
Package Statistics | |
---|---|
Total Downloads: | 538 |
Monthly Downloads: | 1 |
Daily Downloads: | 0 |
Total Stars: | 1 |
Total Watchers: | 2 |
Total Forks: | 0 |
Total Open Issues: | 1 |
#建议使用: https://github.com/toplan/laravel-sms
云之讯 短信Api
##Laravel 4 #安装 在composer.json 添加
hardywen/ucpaas-sms: 'v1.0'
运行 composer update
在 app/config/app.php
的providers数组里加入
'Hardywen\UcpaasSms\UcpaasSmsServiceProvider',
aliases 数组里加入
'UcpaasSms' =>'Hardywen\UcpaasSms\Facade\UcpaasSms',
运行
artisan config:publish hardywen/ucpaas-sms
去 app/config/packages/hardywen/ucpaas-sms/config.php
配置
#使用 发送手机短信
UcpaasSms::templateSMS('9635', '123456,3', '138xxxxxx')
发送语音验证码
UcpaasSms::voiceCode('123123','138xxxx')
##Laravel 5 #安装 在composer.json 添加
hardywen/ucpaas-sms: 'v2.0'
运行 composer update
在 config/app.php
的providers数组里加入
Hardywen\UcpaasSms\UcpaasSmsServiceProvider::class,
aliases 数组里加入
'UcpaasSms' => Hardywen\UcpaasSms\Facade\UcpaasSms:class,
运行
php artisan vendor:publish
去 app/config/packages/hardywen/ucpaas-sms/config.php
配置
#使用 发送手机短信
UcpaasSms::templateSMS('9635', '123456,3', '138xxxxxx')
发送语音验证码
UcpaasSms::voiceCode('123123','138xxxx')
#云通讯版本
hardywen/ucpaas-sms: 'yuntongxun-v1.0'