mdmsoft/yii2-captcha
最新稳定版本:1.1
Composer 安装命令:
composer require mdmsoft/yii2-captcha
包简介
Captcha with math equation
README 文档
README
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist mdmsoft/yii2-captcha "~1.0"
or add
"mdmsoft/yii2-captcha": "~1.0"
to the require section of your composer.json file.
Usage
Once the extension is installed, simply modify your controler, add or change methode actions():
public function actions() { return [ ... 'captcha' => [ 'class' => 'mdm\captcha\CaptchaAction', 'level' => 3, // avaliable level are 1,2,3 :D ], ]; }
In view
<?= $form->field($model, 'verifyCode')->widget(Captcha::className(), [ 'template' => '<div class="row"><div class="col-lg-12">{image}</div><div class="col-lg-12">{input}</div></div>', ]) ?>
统计信息
- 总下载量: 11.03k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 42
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2014-04-18