Package Data | |
---|---|
Maintainer Username: | jordij |
Maintainer Contact: | hi@jordijoan.me (Jordi J. Tablada) |
Package Create Date: | 2014-03-12 |
Package Last Update: | 2015-08-19 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-20 03:00:43 |
Package Statistics | |
---|---|
Total Downloads: | 109 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 4 |
Total Watchers: | 3 |
Total Forks: | 2 |
Total Open Issues: | 1 |
IMPORTANT MALWARE ISSUE: https://blog.sucuri.net/2015/06/sweetcaptcha-service-used-to-distribute-adware.html
This package provides an easy and quick integration of the sweetCaptcha service for Laravel 4.
Begin by installing this package through Composer. Edit your project's composer.json
file to require jordij/sweet-captcha
.
"require": {
"jordij/sweet-captcha": "dev-master"
},
Save the changes and run a composer update:
composer update
Add 'Jordij\SweetCaptcha\SweetCaptchaServiceProvider'
to the providers array in your app/config/app.php
Register your sweetCaptcha account here. Set the ApplicationID, the key and the secret in the package configuration file config/config.php
.
By default the package will use the current locale of your Laravel application. If by any reasons you want to set a fixed locale you can do it by editing the package configuration file config/config.php
.
In your form:
{{ Form::sweetcaptcha() }}
Add 'sckey' => 'sweetcaptcha'
to your rules array before validating the form.
If you want to change the error message you can do it in the package language file lang/en/validation.php