2017 © Pedro Peláez
 

library recaptcha

Laravel 4 bridge for recaptcha/php5

image

cohensive/recaptcha

Laravel 4 bridge for recaptcha/php5

  • Sunday, October 26, 2014
  • by KaneCohen
  • Repository
  • 1 Watchers
  • 0 Stars
  • 121 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

reCaptcha for Laravel 4

Installation

Add following require to your composer.json file:, (*1)

    "cohensive/recaptcha": "dev-master"

Then run composer install or composer update to download it and autoload., (*2)

In providers array you need to add new package:, (*3)

'providers' => array(

    //...
    'Cohensive\Recaptcha\RecaptchaServiceProvider',
    //...

)

In aliases:, (*4)

'aliases' => array(

    //...
    'Recaptcha' => 'Cohensive\Recaptcha\Facades\Recaptcha'
    //...

)

And after all that, we need to add config file, which will hold our private and public keys. Run following line in command line:, (*5)

    php artisan config:publish cohensive/recaptcha

Your public and private key could be found in Google reCaptcha account page., (*6)

Usage

Insert Recaptcha javascript code into your page (check your Google reCaptcha account)., (*7)

Then, all you need is to insert a new rule to your validator on your POST processing page:, (*8)

  return [
    'recaptcha_response_field' => 'recaptcha'
  ];

recaptcha rule can be added to any input attribute, just make sure to translate it correcly in your language file., (*9)

The Versions

26/10 2014

4.1.x-dev

4.1.9999999.9999999-dev

Laravel 4 bridge for recaptcha/php5

  Sources   Download

BSD-3-Clause

The Requires

 

by Kane Cohen

laravel captcha recaptcha

26/10 2014

dev-master

9999999-dev

Laravel 4 bridge for recaptcha/php5

  Sources   Download

BSD-3-Clause

The Requires

 

by Kane Cohen

laravel captcha recaptcha

26/11 2013

4.0.x-dev

4.0.9999999.9999999-dev

Laravel 4 bridge for recaptcha/php5

  Sources   Download

BSD-3-Clause

The Requires

 

by Kane Cohen

laravel captcha recaptcha

26/11 2013

4.0.0

4.0.0.0

Laravel 4 bridge for recaptcha/php5

  Sources   Download

BSD-3-Clause

The Requires

 

by Kane Cohen

laravel captcha recaptcha