PHP code example of georgechem / captcha

1. Go to this page and download the library: Download georgechem/captcha 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/ */

    

georgechem / captcha example snippets


use Georgechem\Captcha\Captcha\Captcha;

pire time can be edited (default 5 minutes)
$captcha = Captcha::getInstance();
// create end echo image with captcha
$captcha->create();

use Georgechem\Captcha\Captcha\Captcha;

Returns bool, true on success, false on failure
$captcha->verify($text);