globalcipta/laravel-sms-media-channel
Composer 安装命令:
composer require globalcipta/laravel-sms-media-channel
包简介
Sends SMS using SMS Media API
README 文档
README
Add this to your laravel project
composer require globalcipta/laravel-sms-media-channel
edit config/services.php and add this config.
...
'smsmedia' => [
/*
|--------------------------------------------------------------------------
| Service URL
|--------------------------------------------------------------------------
|
| Service URL provided by SMS Media
|
*/
'base_url' => env('SERVICE_SMSMEDIA_BASE_URL', null),
/*
|--------------------------------------------------------------------------
| Sender ID/ Masking
|--------------------------------------------------------------------------
|
| Sender ID or SMS masking for your application
|
*/
'sender_id' => env('SERVICE_SMSMEDIA_SENDER_ID', null),
/*
|--------------------------------------------------------------------------
| Authentication method
|--------------------------------------------------------------------------
|
| Authentication method used by sms media client, this could be `auth` or `token`
|
*/
'mode' => 'auth',
/*
|--------------------------------------------------------------------------
| Credentials
|--------------------------------------------------------------------------
|
| If you're choosing `auth` method then you should supply BOTH username and password,
| but if you're opting for token method you only have to provide token.
|
*/
'credentials' => [
'username' => env('SERVICE_SMSMEDIA_USERNAME', null),
'password' => env('SERVICE_SMSMEDIA_PASSWORD', null),
'token' => env('SERVICE_SMSMEDIA_TOKEN', null)
]
],
...
统计信息
- 总下载量: 442
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-07-25