Package Data | |
---|---|
Maintainer Username: | doanvanluan |
Maintainer Contact: | luacap.contact@gmail.com (Luasoft) |
Package Create Date: | 2014-12-01 |
Package Last Update: | 2016-01-04 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-12-19 03:21:41 |
Package Statistics | |
---|---|
Total Downloads: | 36 |
Monthly Downloads: | 1 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 2 |
Total Forks: | 0 |
Total Open Issues: | 0 |
Captcha package for Laravel framework 4.x
Modify composer.json :
{
...
"require": {
"luacap/captcha": "dev-master"
}
}
Show captcha image:
<?php
use Luacap\Captcha\LuacapCaptcha;
$captcha = new LuacapCaptcha;
$captcha->getCaptchaImage();
Validation captcha:
<?php
if ($_SESSION['luacap_captcha_code'] == Input::get('input_code') {
// passed
} else {
// wrong
}