laravel-dev-common / union-sdk-sms
Laravel 开发短信 SDK 工具
1.0.3
2017-01-05 07:33 UTC
Requires
- php: >=5.5.9
- laravel-dev-common/union-config: *
- laravel-dev-common/union-sdk-alicore: *
This package is not auto-updated.
Last update: 2024-09-28 20:25:23 UTC
README
#union-sms
使用示例
配置
return [
'sdk'=>[
'sms'=>[
'captcha'=>[
'regionId'=>'--------',
'accessKeyId'=>'--------',
'accessSecret'=>'--------',
'signname'=>'--------',
'templatecode'=>'--------'
]
]
]
];
调用
use Union\Sdk\Sms\SmsEntrance;
// 配置的 captcha 可以区分 验证码 消息短信 提醒短信 区分模版用
SmsEntrance::send('captcha',"11111111","{\"ma\":\"111111\"}");