2017 © Pedro Peláez
 

library laravel-securimage

Laravel 5 Securimage helper

image

yhbyun/laravel-securimage

Laravel 5 Securimage helper

  • Thursday, December 8, 2016
  • by yhbyun
  • Repository
  • 1 Watchers
  • 3 Stars
  • 370 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 0 Open issues
  • 6 Versions
  • 13 % Grown

The README.md

Laravel 5 Securimage helper

Build Status, (*1)

A simple laravel 5 wrapper package for Securimage., (*2)

preview, (*3)

Installation

Add the package to your composer.json by running:, (*4)

composer require yhbyun/laravel-securimage

When it's installed, add it to the providers list in config/app.php, (*5)

Yhbyun\Securimage\SecurimageServiceProvider::class,

Publish assets to your public folder, (*6)

$ php artisan vendor:publish --provider="Yhbyun\Securimage\SecurimageServiceProvider"

Configuration

config/securimage.php, (*7)

return [
    'length' => env('SECURIMAGE_LENGTH', 6),
    'width'  => env('SECURIMAGE_WIDTH', 215),
    'height'  => env('SECURIMAGE_HEIGHT', 80),
    'perturbation' => env('SECURIMAGE_PERTURBATION', .85),
    'case_sensitive' => env('SECURIMAGE_CASE_SENSITIVE', false),
    'num_lines' => env('SECURIMAGE_NUM_LINES', 0),
    'charset' => env('SECURIMAGE_CHARSET', 'ABCDEFGHKLMNPRSTUVWYZabcdefghklmnprstuvwyz23456789'),
    'signature' => env('SECURIMAGE_SIGNATURE', 'ecplaza'),
    'show_text_input' => env('SECURIMAGE_SHOW_TEXT_INPUT', false),
];

Example Usage

app/Http/routes.php, (*8)

Route::any('captcha-test', function()
{
    if (Request::getMethod() == 'POST')
    {
        $rules = ['captcha' => 'required|captcha'];
        $validator = Validator::make(Input::all(), $rules);
        if ($validator->fails())
        {
            echo '

Incorrect!, (*9)

'; } else { echo '

Matched :), (*10)

'; } } $form = '<form method="post" action="captcha-test">'; $form .= '<input type="hidden" name="_token" value="' . csrf_token() . '">'; $form .= '<p>' . captcha_img() . '</p>'; $form .= '<p><button type="submit" name="check">Check</button></p>'; $form .= '</form>'; return $form; });

Testing

$ phpunit --stderr

The Versions

08/12 2016

dev-master

9999999-dev https://github.com/yhbyun/laravel-securimage

Laravel 5 Securimage helper

  Sources   Download

MIT

The Requires

 

The Development Requires

by YongHun Byun

laravel captcha securimage

08/12 2016

0.1.3

0.1.3.0 https://github.com/yhbyun/laravel-securimage

Laravel 5 Securimage helper

  Sources   Download

MIT

The Requires

 

The Development Requires

by YongHun Byun

laravel captcha securimage

14/07 2016

v0.1.2

0.1.2.0 https://github.com/yhbyun/laravel-securimage

Laravel 5 Securimage helper

  Sources   Download

MIT

The Requires

 

The Development Requires

by YongHun Byun

laravel captcha securimage

11/07 2016

v0.1.1

0.1.1.0 https://github.com/yhbyun/laravel-securimage

Laravel 5 Securimage helper

  Sources   Download

MIT

The Requires

 

The Development Requires

by YongHun Byun

laravel captcha securimage

11/07 2016

dev-analysis-8LZeJk

dev-analysis-8LZeJk https://github.com/yhbyun/laravel-securimage

Laravel 5 Securimage helper

  Sources   Download

MIT

The Requires

 

The Development Requires

by YongHun Byun

laravel captcha securimage

11/07 2016

v0.1.0

0.1.0.0 https://github.com/yhbyun/laravel-securimage

Laravel 5 Securimage helper

  Sources   Download

MIT

The Requires

 

The Development Requires

by YongHun Byun

laravel captcha securimage