2017 © Pedro Peláez
 

library captcha

Captcha for Laravel 5

image

dearmadman/captcha

Captcha for Laravel 5

  • Thursday, October 8, 2015
  • by DearMadMan
  • Repository
  • 1 Watchers
  • 0 Stars
  • 61 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 20 % Grown

The README.md

Captcha

Simple Captcha for laravel 5, (*1)

Preview

![alt Captcha](https://raw.githubusercontent.com/DearMadMan/Captcha/master/preview.jpg)

Installation

The Captcha Service Provider can be installed via Composer by requiring the dearmadman/captcha package and setting the minimum-stability to dev (required for Laravel 5) in your project's composer.json., (*2)

{
    "require": {
        "laravel/framework": "5.0.*",
        "dearmadman/captcha": "dev-master"
    },
    "minimum-stability": "dev"
}

Usage

To use the Captcha Service Provider, you must register the provider when bootstrapping your Laravel application. There are essentially two ways to do this., (*3)

Find the providers key in app/config/app.php and register the Captcha Service Provider., (*4)

    'providers' => array(
        // ...
        'Dearmadman\Captcha\CaptchaServiceProvider',
    )

Example Usage


// [your site path]/app/routes.php Route::get('captcha',function(Captcha $captcha){ $captcha->InitFromArray([ 'width'=>100, 'height'=>50, 'chinese'=>true, 'char_num'=>5, 'line_x'=>3, 'line_y'=>2, 'pixel'=>300 ]); return $captcha->PushImage(); }); Route::get('check',function(Captcha $captcha){ return $captcha->check('板迷的细财')?'ok':'wrong'; });

^_^, (*5)

The Versions

08/10 2015

dev-master

9999999-dev

Captcha for Laravel 5

  Sources   Download

MIT

by Avatar DearMadMan

laravel5 capthca dearmadman

08/10 2015

v0.0.1

0.0.1.0

Captcha for Laravel 5

  Sources   Download

MIT

by Avatar DearMadMan

laravel5 capthca dearmadman