dereuromark/cakephp-captcha

A CakePHP plugin to integrate captchas.

Installs: 7 575

Dependents: 1

Suggesters: 0

Security: 0

Stars: 3

Watchers: 1

Forks: 4

Open Issues: 0

Type:cakephp-plugin

1.1.0 2020-11-07 02:26 UTC

This package is auto-updated.

Last update: 2020-11-07 02:34:47 UTC


README

Build Status Coverage Status Minimum PHP Version License Total Downloads Coding Standards

Allows any type of image-based captchas for your forms.

A CakePHP plugin to

  • Easily integrate captchas in your CakePHP application.

This plugin requires CakePHP 4.0+. See version map for details.

What's in this plugin

  • Simple match captchas that will already do the trick without annoying "I can't read those letters".
  • Passive captcha option for basic protection without requiring user input ("honeypot trap").
  • Extendable interface approach to easily hook in your own engine.

What are the gotchas

  • Dead simple, no fancy JS or alike.
  • Cross-tab safe (not session based as in overwriting each other per request).
  • Completely stand-alone plugin, no third party stuff involved/needed.

Demo

See https://sandbox.dereuromark.de/sandbox/captchas

Setup

composer require dereuromark/cakephp-captcha

and

bin/cake plugin load Captcha -b -r

For active captchas you also need to import the SQL schema. The quickest way is using Migrations plugin:

bin/cake migrations migrate -p Captcha

For the match captcha, make sure you got the gd lib installed:

  • sudo apt-get install php{version}-gd

Usage

See Docs.