fm-labs / cakephp-captcha
CakePHP Captcha Plugin
Installs: 93
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:cakephp-plugin
Requires
- php: >=7.2
- dapphp/securimage: ^3.6.7
This package is auto-updated.
Last update: 2024-12-14 16:43:23 UTC
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();