2017 © Pedro Peláez
 

library one-click-captcha

Simple captcha that requires from user to only click a cut circle on image with several other circles. You can customize color of circles, background, width and height of image. Its very lightweight require no js just simple form in html and php gd extension.

image

krowinski/one-click-captcha

Simple captcha that requires from user to only click a cut circle on image with several other circles. You can customize color of circles, background, width and height of image. Its very lightweight require no js just simple form in html and php gd extension.

  • Sunday, March 20, 2016
  • by krowinski
  • Repository
  • 1 Watchers
  • 3 Stars
  • 162 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 5 Versions
  • 49 % Grown

The README.md

OneClick captcha

Build Status Latest Stable Version Total Downloads Latest Unstable Version License, (*1)

This lib can perform CAPTCHA validation based on user clicks on circles., (*2)

It render an image with several circles on random positions. Only one circle appears cut., (*3)

The class performs CAPTCHA validation by checking the position where the user clicks on the image to verify it it is inside of the circle that is cut., (*4)

The generated image is served in PNG format. The values of the rendered circles are stored in session variables for subsequent validation., (*5)

The size and colors of the image and the circles are configurable parameters., (*6)

1. install using composer
composer require krowinski/one-click-captcha
2. example

include __DIR__ . '/../vendor/autoload.php'; error_reporting(E_ALL); $OneClickCaptchaServiceFactory = new \OneClickCaptcha\Service\OneClickCaptchaServiceFactory(); $oneClickCaptcha = $OneClickCaptchaServiceFactory->getOneClickCaptcha(); // simple demonstration! $request = isset($_GET['get_captcha']) ? $_GET['get_captcha'] : ''; if ($request === 'true') { $oneClickCaptcha->showCaptcha(); } else { if (isset($_REQUEST['position'][0], $_REQUEST['position'][1])) { if (true === $oneClickCaptcha->validate($_REQUEST['position'][0], $_REQUEST['position'][1])) { echo '

You are human!!

'; } else { echo '

Wrong!

'; } } } // this is all html you need to validate captcha echo '
';

The Versions

20/03 2016

dev-master

9999999-dev

Simple captcha that requires from user to only click a cut circle on image with several other circles. You can customize color of circles, background, width and height of image. Its very lightweight require no js just simple form in html and php gd extension.

  Sources   Download

MIT

The Requires

 

The Development Requires

php captcha

09/12 2015

1.3

1.3.0.0

Simple captcha that requires from user to only click a cut circle on image with several other circles. You can customize color of circles, background, width and height of image. Its very lightweight require no js just simple form in html and php gd extension.

  Sources   Download

MIT

The Requires

 

The Development Requires

php captcha

07/12 2015

1.2

1.2.0.0

Simple captcha that requires from user to only click a cut circle on image with several other circles. You can customize color of circles, background, width and height of image. Its very lightweight require no js just simple form in html and php gd extension.

  Sources   Download

MIT

The Requires

 

The Development Requires

php captcha

07/12 2015

1.1

1.1.0.0

Simple captcha that requires from user to only click a cut circle on image with several other circles. You can customize color of circles, background, width and height of image. Its very lightweight require no js just simple form in html and php gd extension.

  Sources   Download

MIT

The Requires

 

The Development Requires

php captcha

07/12 2015

1.0

1.0.0.0

Simple captcha that requires from user to only click a cut circle on image with several other circles. You can customize color of circles, background, width and height of image. Its very lightweight require no js just simple form in html and php gd extension.

  Sources   Download

MIT

The Requires

 

The Development Requires

php captcha