2017 © Pedro Peláez
 

library laravel-recaptcha

google-recaptcha for Laravel 5

image

pherum/laravel-recaptcha

google-recaptcha for Laravel 5

  • Thursday, September 21, 2017
  • by PheRum
  • Repository
  • 1 Watchers
  • 0 Stars
  • 382 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 2 % Grown

The README.md

Laravel Recaptcha

Latest Version on Packagist ![Software License][ico-license] Build Status StyleCI ![Quality Score][ico-code-quality] Total Downloads, (*1)

SensioLabsInsight, (*2)

Description

Laravel Recaptcha is a free CAPTCHA service that protect websites from spam and abuse., (*3)

Install

Via Composer, (*4)

``` bash composer require pherum/laravel-recaptcha, (*5)


And then, if using Laravel 5, include the service provider within `app/config/app.php`. ```php 'providers' => [ ... PheRum\Recaptcha\RecaptchaServiceProvider::class, ];

And, for convenience, add a facade alias to this same file at the bottom:, (*6)

'aliases' => [
    ...
    'Recaptcha' => PheRum\Recaptcha\Facades\Recaptcha::class,
];

Configuration

Laravel Recaptcha supports optional configuration., (*7)

To get started, you'll need to publish all vendor assets:, (*8)

php artisan vendor:publish --provider="PheRum\Recaptcha\RecaptchaServiceProvider"

This will create a config/recaptcha.php file in your app that you can modify to set your configuration. Also, make sure you check for changes to the original config file in this package between releases., (*9)

Usage

Validate a captcha in controller
$this->validate($request, [
    'g-recaptcha-response' => 'required|recaptcha',
]);
Render captcha
{!! Recaptcha::render() !!}
Render captcha with options
{!! Recaptcha::render(['lang' => 'en']) !!}

Testing

composer test

Security

If you discover any security related issues, please email pherum@mail.ru instead of using the issue tracker., (*10)

License

The MIT License (MIT). Please see License File for more information., (*11)

The Versions

21/09 2017

dev-master

9999999-dev https://github.com/pherum/laravel-recaptcha

google-recaptcha for Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel captcha laravel5 recaptcha

21/09 2017

1.0.2

1.0.2.0 https://github.com/pherum/laravel-recaptcha

google-recaptcha for Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel captcha laravel5 recaptcha

15/08 2016

1.0.1

1.0.1.0 https://github.com/pherum/laravel-recaptcha

google-recaptcha for Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel captcha laravel5 recaptcha

15/08 2016

1.0.0

1.0.0.0 https://github.com/pherum/laravel-recaptcha

google-recaptcha for Laravel 5

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel captcha laravel5 recaptcha