ywmm3951/yii2-alidayu
Composer 安装命令:
composer require ywmm3951/yii2-alidayu
包简介
alidayu for Yii2
关键字:
README 文档
README
alidayu for Yii2
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require ywmm3951/yii2-alidayu "dev-master"
or add
"ywmm3951/yii2-alidayu": "dev-master"
to the require section of your composer.json file.
Usage
配置文件添加组件:
'components' => [
'alidayu' => [
'class' => 'ywmm3951\alidayu\SendCaptcha',
'appkey' => 'xxx', // 阿里大于 appkey
'secretKey' => 'xxx', // 阿里大于 secretKey
'signName' => 'xxx', // 短信签名
'templateCode' => 'xxx', // 短信模板ID
],
],
调用:
<?php
use Yii;
/**
* 发送验证码
* @return boolean true|false
*/
Yii::$app->alidayu->sendSMS($mobile, $content);
统计信息
- 总下载量: 23
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2017-03-03