sb89 / Recaptcha by sb89

Recaptcha for Laravel 4
947
2
1
Package Data
Maintainer Username: sb89
Maintainer Contact: s.blake.08@aberdeen.ac.uk (Steven Blake)
Package Create Date: 2013-07-10
Package Last Update: 2014-01-06
Language: PHP
License: MIT
Last Refreshed: 2024-11-22 03:16:48
Package Statistics
Total Downloads: 947
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 2
Total Watchers: 1
Total Forks: 1
Total Open Issues: 0

Recaptcha

Laravel 4 Recaptcha Package

Installation

  1. Run composer require sb89/recaptcha.
  2. If asked for a version, use "dev-master" (without the quotes).
  3. Add 'Sb89\Recaptcha\RecaptchaServiceProvider' to the providers array in app/config/app.php.
  4. Run php artisan config:publish sb89/recaptcha.
  5. Add your Recaptcha Private and Public keys to app/config/packages/sb89/recaptcha/config.php.
  6. Add a language entry to app/lang/en/validation.php ('en' will depend on your language) e.g 'recaptcha'=>'Recaptcha is incorrect.'

Usage

  1. Form::recaptcha()
  2. Add 'recaptcha_response_field' => 'required|recaptcha' to your validation rules.

Theme

The Recaptcha theme can be specified by using Form::recaptcha(array('theme'=>'clean')).

SSL

SSL can be specified by using Form::recaptcha(array('use_ssl'=>true)).