PHP code example of luacap / captcha
1. Go to this page and download the library: Download luacap/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/ */
luacap / captcha example snippets
use Luacap\Captcha\LuacapCaptcha;
$captcha = new LuacapCaptcha;
$captcha->getCaptchaImage();
if ($_SESSION['luacap_captcha_code'] == Input::get('input_code') {
// passed
} else {
// wrong
}