aragorn-yang/aliyun-sms-php
Composer 安装命令:
composer require aragorn-yang/aliyun-sms-php
包简介
阿里云短信服务
README 文档
README
安装
composer require aragorn-yang/aliyun-sms-php
使用方法
基于 Laravel 框架
php artisan vendor:publish --provider="AragornYang\AliyunSms\ServiceProvider"
根据新增的aliyun-sms.php 文件,在 .env 文件中添加环境变量:
ALIYUN_SMS_ACCESS_KEY_ID=your_access_key_id
ALIYUN_SMS_ACCESS_KEY_SECRET=your_access_key_secret
$aliSms = new AliyunSms(); $response = $aliSms->sendSms('phone_number', 'sign_name', 'template_code', ['name'=> 'value in your template']); $response = $aliSms->querySendDetails('phone_number', '20180911', 10, 1);
统计信息
- 总下载量: 60
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-09-11