luacap/captcha

Captcha library for Laravel framework.

Installs: 37

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/luacap/captcha

1.0.2 2016-01-04 05:57 UTC

This package is not auto-updated.

Last update: 2025-10-15 13:12:56 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
}