neto737/xeoncaptcha

A simple CAPTCHA system written in PHP

1.1.3 2024-05-04 07:13 UTC

This package is auto-updated.

Last update: 2024-11-04 08:31:10 UTC


README

A simple CAPTCHA system written in PHP.

Latest Stable Version Total Downloads Latest Unstable Version License

Requirements

  • PHP 7.0 or earlier with:
    • GD

Installation

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.

# 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:

require 'vendor/autoload.php';

use neto737\xeonCAPTCHA;

Or if put the following in your composer.json:

"neto737/xeoncaptcha": "*"

Example

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);

Credits

Donate

Donate BTC Donate ETH