luacap/captcha

Captcha library for Laravel framework.
37
Install
composer require luacap/captcha
Latest Version:1.0.2
PHP:>=5.4.0
Maintainer: doanvanluan

Introduction

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
}