2017 © Pedro Peláez
 

library laravel-recaptcha

Laravel integration for reCAPTCHA library

image

fruitcakestudio/laravel-recaptcha

Laravel integration for reCAPTCHA library

  • Friday, December 19, 2014
  • by Barryvdh
  • Repository
  • 5 Watchers
  • 4 Stars
  • 11,459 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 9 % Grown

The README.md

Laravel integration for reCAPTCHA Library

This is a Laravel integration package for https://github.com/fruitcakestudio/php-recaptcha, (*1)

Installation

Require this package with composer:, (*2)

composer require fruitcakestudio/laravel-recaptcha

Laravel integration

You can use the Laravel ServiceProvider to make use of the Laravel Configuration and Request object., (*3)

Add the ServiceProvider to your list of ServiceProviders:, (*4)

'FruitcakeStudio\ReCaptcha\Support\Laravel\ServiceProvider',

Publish the Configuration and edit the sitekey, secret and language., (*5)

php artisan config:publish fruitcakestudio/laravel-recaptcha

If you want to use the Facade, add that too., (*6)

'ReCaptcha' => 'FruitcakeStudio\ReCaptcha\Support\Laravel\Facade',

This will register the ReCaptcha instance, preconfigured with your configuration and the Request object., (*7)

// Using the IoC container
$captcha = App::make('recaptcha');
$captcha->getScript();

// Using the Facade
ReCaptcha::verifyRequest();

You can also add the ReCaptcha as a rule to the validator:, (*8)

$validator = Validator::make(Input::all(), array(
    'g-recaptcha-response' => 'required|recaptcha'
));

The Versions

19/12 2014

dev-master

9999999-dev

Laravel integration for reCAPTCHA library

  Sources   Download

MIT

The Requires

 

laravel captcha spam recaptcha nocaptcha no captcha

15/12 2014

v0.1.0

0.1.0.0

Laravel integration for reCAPTCHA library

  Sources   Download

MIT

The Requires

 

laravel captcha spam recaptcha nocaptcha no captcha