03/06
2018
A simple CAPTCHA system written in PHP
A simple CAPTCHA system written in PHP., (*1)
To install the xeonCAPTCHA, you will need to be using Composer in your project. If you aren't using Composer yet, it's really simple! Here's how to install composer and the xeonCAPTCHA., (*3)
# Install Composer curl -sS https://getcomposer.org/installer | php # Add the xeonCAPTCHA as a dependency php composer.phar require neto737/xeoncaptcha
Next, require Composer's autoloader, in your application, to automatically load the xeonCAPTCHA in your project:, (*4)
require 'vendor/autoload.php'; use neto737\xeonCAPTCHA;
Or if put the following in your composer.json
:, (*5)
"neto737/xeoncaptcha": "*"
require 'vendor/autoload.php'; use neto737\xeonCAPTCHA; //If you set the second variable as true your CAPTCHA will be a math CAPTCHA $xeon = new xeonCAPTCHA(xeonCAPTCHA::IMG_PNG, false); //This function will return an image $xeon->generateCAPTCHA(155, 30, 20, 5, 'xeonCAPTCHA', '', 22);