fm-labs/cakephp-captcha

There is no license information available for the latest version (1.2.1) of this package.

CakePHP Captcha Plugin

Installs: 90

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:cakephp-plugin

1.2.1 2023-03-14 12:53 UTC

This package is auto-updated.

Last update: 2024-04-14 15:08:29 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

  1. Enable Plugin

    //File: config/bootstrap.php

    Plugin::load('Captcha', ['bootstrap' => true, 'routes' => true);

  2. 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();