Download the PHP package torralbodavid/simple-recaptcha-v3 without Composer
On this page you can find all versions of the php package torralbodavid/simple-recaptcha-v3. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download torralbodavid/simple-recaptcha-v3
More information about torralbodavid/simple-recaptcha-v3
Files in torralbodavid/simple-recaptcha-v3
Package simple-recaptcha-v3
Short Description Simple reCAPTCHA v3 integration
License MIT
Homepage https://github.com/torralbodavid/simple-recaptcha-v3
Informations about the package simple-recaptcha-v3
Simple reCAPTCHA v3 integration
This repository contains simple reCAPTCHA v3 integration for your Laravel application.
Installation
You can install the package via composer:
Usage
- Set the following variables in your .env
Override xxxxx with your reCaptcha v3 keys. Get yours here
Optionally, you can publish the config file of the package. You will be able to customize advanced settings, such as:
- Disabling reCaptcha v3
- Minimum score you should get in order to validate your form
- Hostname validation
- Hide reCaptcha badge
- Prefer navigator language on reCaptcha badge
-
To get started, you must include at the very bottom of your head tag from the pages you want to protect with reCaptcha, the
@captcha_init
blade directive. This will start loading Google reCAPTCHA API. -
Include below your form initialization tag, the
@captcha('xxxx')
blade directive. Replace xxxx with your desired action. - To sum up, add the following rule on your form validation:
Customize error messages
You can customize reCaptcha v3 error messages by publishing the translations on your project.
Customize snippets
You can customize @captcha and @captcha_init snippets by publishing the views on your project
Disable reCaptcha v3 integration in tests
You can easily disable reCaptcha v3 integration in your tests by adding the following configuration on them
Testing
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- David Torralbo Pérez
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
Have fun!