https://github.com/neto737/xeoncaptcha
A simple CAPTCHA system written in PHP
https://github.com/neto737/xeoncaptcha
captcha neto737 php security simple
Last synced: about 1 year ago
JSON representation
A simple CAPTCHA system written in PHP
- Host: GitHub
- URL: https://github.com/neto737/xeoncaptcha
- Owner: neto737
- License: gpl-3.0
- Created: 2018-06-03T01:37:35.000Z (about 8 years ago)
- Default Branch: main
- Last Pushed: 2024-05-04T07:14:21.000Z (about 2 years ago)
- Last Synced: 2025-06-04T11:56:25.495Z (about 1 year ago)
- Topics: captcha, neto737, php, security, simple
- Language: PHP
- Homepage:
- Size: 31.3 KB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# xeonCAPTCHA
A simple CAPTCHA system written in PHP.
[](https://packagist.org/packages/neto737/xeoncaptcha) [](https://packagist.org/packages/neto737/xeoncaptcha) [](//packagist.org/packages/neto737/xeoncaptcha) [](https://packagist.org/packages/neto737/xeoncaptcha)
## Requirements
- PHP 7.0 or earlier with:
- GD
## Installation
To install the xeonCAPTCHA, you will need to be using [Composer](http://getcomposer.org/) in your project. If you aren't using Composer yet, it's really simple! Here's how to install composer and the xeonCAPTCHA.
```sh
# 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:
```php
require 'vendor/autoload.php';
use neto737\xeonCAPTCHA;
```
Or if put the following in your `composer.json`:
```json
"neto737/xeoncaptcha": "*"
```
## Example
```php
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
- Neto Melo
## Donate
[](https://blockchain.info/address/12oyGgGHYp1NxtoQFUmaoqm1z8XAeTQKUb) [](https://etherscan.io/address/0xE461A5aC39a86Ec651AB49277637e6d4417257fA)