Package Data | |
---|---|
Maintainer Username: | cmzz |
Maintainer Contact: | iwuzhuo@gmail.com (Andy) |
Package Create Date: | 2017-02-17 |
Package Last Update: | 2017-05-17 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-23 03:16:49 |
Package Statistics | |
---|---|
Total Downloads: | 3,553 |
Monthly Downloads: | 1 |
Daily Downloads: | 0 |
Total Stars: | 40 |
Total Watchers: | 4 |
Total Forks: | 7 |
Total Open Issues: | 2 |
阿里云短信服务 for Laravel
composer require cmzz/laravel-aliyun-sms
$smsService = App::make(AliyunSms::class);
$smsService->send(strval($mobile), 'SMS_xxx', ['code' => strval(1234), 'product' => 'xxx']);
.env
配置中支持一下配置项:
// aliyun sms
ALIYUN_SMS_ENABLE_HTTP_PROXY=false
ALIYUN_SMS_HTTP_PROXY_IP=127.0.0.1
ALIYUN_SMS_HTTP_PROXY_PORT=8888
ALIYUN_SMS_REGION_ID=cn-hangzhou
ALIYUN_SMS_AK
ALIYUN_SMS_AS
ALIYUN_SMS_SIGN_NAME