| Package Data | |
|---|---|
| Maintainer Username: | hardywen |
| Maintainer Contact: | 375480616@qq.com (hardywen) |
| Package Create Date: | 2016-01-11 |
| Package Last Update: | 2016-03-29 |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-11-10 03:10:34 |
| Package Statistics | |
|---|---|
| Total Downloads: | 389 |
| Monthly Downloads: | 0 |
| Daily Downloads: | 0 |
| Total Stars: | 1 |
| Total Watchers: | 1 |
| Total Forks: | 0 |
| Total Open Issues: | 0 |
laravel 5 版本请使用 https://github.com/toplan/laravel-sms
#install
composer require 'hardywen/phpsms-l4' '~1.0'
#config config/app.php 两个数组加入:
providers = [
'Hardywen\PhpSms\PhpSmsServiceProvider'
]
aliases = [
'SMS'=>'Hardywen\PhpSms\Facade\Sms',
]
php artisan config:publish hardywen/phpsms-l4
#exapmle
$result = SMS::make()->to('138xxxxxxxx')->template([
'Ucpaas' => '1233',
'YunTongXun' => '1211'
])->data(['123123', 10])->content('something')->send();
if($result['success'] == true){
//发送成功,做你想做的事
}else{
//发送失败
}
更多使用方式查看原组件
https://github.com/toplan/phpsms