New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

iorme/simplecaptcha

Create simple captcha using php
2,425 1
Install
composer require iorme/simplecaptcha
Latest Version:v0.1
PHP:>=5.3.0
Laravel:4
License:MIT
Last Updated:Sep 17, 2016
Links: GitHub  ·  Packagist
Maintainer: iorme

Simple PHP captcha generator for Laravel 4

Installation

composer.json

"require": {
		"iorme/simplecaptcha": "dev-master"
	},

install

$ /path/to/composer.phar install

Usage

Add the service provider, open app/config/app.php and add new item to the providers array :

'Iorme\SimpleCaptcha\SimpleCaptchaServiceProvider',

then add the alias to the aliases array:

'SimpleCaptcha' => 'Iorme\SimpleCaptcha\Facades\SimpleCaptcha',

On the view file :

<p>
    {{ HTML::image(URL::to('simplecaptcha'),'Captcha') }}
    {{ Form::label('captcha', '* Captcha:') }}
    {{ Form::text('captcha') }}
</p>

check the captcha string on the controllers :

$check = SimpleCaptcha::check($input['captcha']);

if($check == true) {
	echo "captcha string is right";
} else {
	echo "captcha string is wrong";
}

Related Packages

josiasmontag/laravel-recaptchav3

Recaptcha V3 for Laravel package

2,357,341 270
valorin/random

Random is a simple helper package designed to make it easy to generate a range o...

413,065 233
php
cline/variable-keys

Laravel Blueprint macros for variable primary key and morph types

22,912 0
php
cline/struct

Lean, attribute-driven Laravel data objects with explicit validation and Eloquen...

17,788 0
php
cline/toggl

Advanced feature flag management with strategies, time bombs, and groups

12,171 0
php

Version History

Version Released PHP Laravel License
v0.1 >=5.3.0 4.2.x MIT