2017 © Pedro Peláez
 

yii2-extension yii2-alidayu

alidayu for Yii2

image

ywmm3951/yii2-alidayu

alidayu for Yii2

  • Friday, March 3, 2017
  • by ywmm3951
  • Repository
  • 1 Watchers
  • 3 Stars
  • 15 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

yii2-alidayu

alidayu for Yii2, (*1)

Installation

The preferred way to install this extension is through composer., (*2)

Either run, (*3)

php composer.phar require ywmm3951/yii2-alidayu "dev-master"

or add, (*4)

"ywmm3951/yii2-alidayu": "dev-master"

to the require section of your composer.json file., (*5)

Usage

配置文件添加组件:, (*6)

'components' => [
    'alidayu' => [
        'class' => 'ywmm3951\alidayu\SendCaptcha',
        'appkey' => 'xxx', // 阿里大于 appkey
        'secretKey' => 'xxx', // 阿里大于 secretKey
        'signName' => 'xxx', // 短信签名
        'templateCode' => 'xxx', // 短信模板ID
    ],
],

调用:, (*7)

<?php
use Yii;
/**
 * 发送验证码
 * @return boolean true|false
 */
Yii::$app->alidayu->sendSMS($mobile, $content);

The Versions

03/03 2017

dev-master

9999999-dev

alidayu for Yii2

  Sources   Download

BSD-3-Clause

The Requires

 

by ywm

extension yii2

03/03 2017

v0.1

0.1.0.0

alidayu for Yii2

  Sources   Download

BSD-3-Clause

The Requires

 

by ywm

extension yii2