luacap/captcha

Captcha library for Laravel framework.

1.0.2 2016-01-04 05:57 UTC

This package is not auto-updated.

Last update: 2024-11-13 08:50:05 UTC


README

Captcha package for Laravel framework 4.x

Captcha Examples

Installation

Modify composer.json :

{
    ...
    "require": {
        "luacap/captcha": "dev-master"
    }
}

Usage

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
}