luasoft / captcha_library by doanvanluan

Captcha library for Laravel framework.
34
0
2
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-04-23 03:12:05
Package Statistics
Total Downloads: 34
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 0
Total Watchers: 2
Total Forks: 0
Total Open Issues: 0

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
}