fm-labs/cakephp-captcha
Composer 安装命令:
composer require fm-labs/cakephp-captcha
包简介
CakePHP Captcha Plugin
README 文档
README
An easy-to-use Captcha Plugin for the CakePHP Framework using Securimage PHP Captcha library
Install
Add to your composer.json
{
"require": {
"fm-labs/cakephp-captcha": "dev-master"
}
}
or run
$ composer require fm-labs/cakephp-captcha
Quick Setup
-
Enable Plugin
//File: config/bootstrap.php
Plugin::load('Captcha', ['bootstrap' => true, 'routes' => true);
-
Use CaptchaWidget in forms
//File: In any view template $this->loadHelper('Captcha.Captcha');
$this->Form->create(null); $this->Form->input('captcha', ['type' => 'captcha']]); //$this->Captcha->input('captcha'); // old/deprecated method $this->Form->submit(); $this->Form->end();
统计信息
- 总下载量: 94
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2013-11-19