PHPackages                             ywmm3951/yii2-alidayu - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. ywmm3951/yii2-alidayu

ActiveYii2-extension

ywmm3951/yii2-alidayu
=====================

alidayu for Yii2

v0.1(9y ago)2231BSD-3-ClausePHP

Since Mar 3Pushed 9y ago1 watchersCompare

[ Source](https://github.com/ywmm3951/yii2-alidayu)[ Packagist](https://packagist.org/packages/ywmm3951/yii2-alidayu)[ RSS](/packages/ywmm3951-yii2-alidayu/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

yii2-alidayu
============

[](#yii2-alidayu)

alidayu for Yii2

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

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
-----

[](#usage)

配置文件添加组件:

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

```

调用:

```
