Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dereuromark/cakephp-captcha
Dead simple, unobtrusive and extendable captcha solution for CakePHP
https://github.com/dereuromark/cakephp-captcha
cakephp cakephp-plugin captcha
Last synced: 13 days ago
JSON representation
Dead simple, unobtrusive and extendable captcha solution for CakePHP
- Host: GitHub
- URL: https://github.com/dereuromark/cakephp-captcha
- Owner: dereuromark
- License: mit
- Created: 2016-06-09T18:17:51.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-10-23T16:02:53.000Z (16 days ago)
- Last Synced: 2024-10-23T21:41:22.422Z (16 days ago)
- Topics: cakephp, cakephp-plugin, captcha
- Language: PHP
- Homepage:
- Size: 589 KB
- Stars: 10
- Watchers: 3
- Forks: 11
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-cakephp - Captcha plugin - Simple, unobtrusive and extendable captcha solution providing by default an image based math captcha. (Security)
README
# Captcha Plugin for CakePHP
[![CI](https://github.com/dereuromark/cakephp-captcha/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/dereuromark/cakephp-captcha/actions/workflows/ci.yml?query=branch%3Amaster)
[![Coverage Status](https://codecov.io/gh/dereuromark/cakephp-captcha/branch/master/graph/badge.svg)](https://codecov.io/gh/dereuromark/cakephp-captcha)
[![Latest Stable Version](https://poser.pugx.org/dereuromark/cakephp-captcha/v/stable.svg)](https://packagist.org/packages/dereuromark/cakephp-captcha)
[![Minimum PHP Version](https://img.shields.io/badge/php-%3E%3D%208.1-8892BF.svg)](https://php.net/)
[![License](https://poser.pugx.org/dereuromark/cakephp-captcha/license.svg)](LICENSE)
[![Total Downloads](https://poser.pugx.org/dereuromark/cakephp-captcha/d/total.svg)](https://packagist.org/packages/dereuromark/cakephp-captcha)
[![Coding Standards](https://img.shields.io/badge/cs-PSR--2--R-yellow.svg)](https://github.com/php-fig-rectified/fig-rectified-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 5.0+**. See [version map](https://github.com/dereuromark/cakephp-captcha/wiki#cakephp-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
```
or manually add it to your `plugins.php` or `Application::bootstrap()` setup.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](docs/).