luacap/captcha

This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.

Captcha library for Laravel framework.

1.0.2 2016-01-04 05:57 UTC

This package is not auto-updated.

Last update: 2021-06-15 16:43:04 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
}