Package Data | |
---|---|
Maintainer Username: | yeoman |
Maintainer Contact: | fast042@163.com (Yeoman) |
Package Create Date: | 2017-03-28 |
Package Last Update: | 2017-05-04 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-23 03:11:06 |
Package Statistics | |
---|---|
Total Downloads: | 79 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 2 |
Total Forks: | 0 |
Total Open Issues: | 1 |
阿里云短信服务 for lumen
composer require yeoman/lumen-aliyun-sms
use Yeoman\LaravelAliyunSms\AliyunSms;
$smsService = new AliyunSms();
$smsService->send(strval($mobile), 'SMS_xxx', ['code' => strval(1234), 'product' => 'xxx']);
.env
配置中支持一下配置项:
// aliyun sms
ALIYUN_SMS_ACCESS_KEY=
ALIYUN_SMS_ACCESS_SECRET=
ALIYUN_SMS_SIGN_NAME=
ALIYUN_SMS_TEMPLATE_CODE=
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