PHP code example of neto737 / xeoncaptcha

1. Go to this page and download the library: Download neto737/xeoncaptcha library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

neto737 / xeoncaptcha example snippets



use neto737\xeonCAPTCHA;


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);
sh
# Install Composer
curl -sS https://getcomposer.org/installer | php

# Add the xeonCAPTCHA as a dependency
php composer.phar