Download the PHP package oneduo/laravel-recaptcha-enterprise without Composer
On this page you can find all versions of the php package oneduo/laravel-recaptcha-enterprise. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download oneduo/laravel-recaptcha-enterprise
More information about oneduo/laravel-recaptcha-enterprise
Files in oneduo/laravel-recaptcha-enterprise
Package laravel-recaptcha-enterprise
Short Description This is my package laravel-recaptcha-enterprise
License MIT
Homepage https://github.com/oneduo/laravel-recaptcha-enterprise
Informations about the package laravel-recaptcha-enterprise
Google reCAPTCHA Enterprise for Laravel
Wrapper to use Google reCAPTCHA Enterprise with Laravel. Provides a handy validation rule to verify your token's score.
Table of Contents
- Prerequisites
- Installation
- Configuration
- Usage
Prerequisites
TLDR; You may want to follow the official documentation to get started.
1. Enable the reCAPTCHA Enterprise API
On your Google Cloud console, go ahead and enable the reCAPTCHA Enterprise API.
2. Create a service account
Create a service account with the following roles:
- reCAPTCHA Enterprise Agent
3. Create a key
Create a key for your service account and download it as a JSON file.
4. Use your credentials
Use your credentials by setting the appropriate values in config/recaptcha-enterprise.php
or by setting the
environment variables.
Installation
You can install the package via composer:
Configuration
You can publish the config file with:
This is the contents of the published config file, you are required to set the variables accordingly:
Usage
You may start using the reCAPTCHA validation rule by implementing the
available Oneduo\RecaptchaEnterprise\Rules\Recaptcha
rule in your business logic, here's an example of a FormRequest
implementation:
Configuring the threshold
When validating a token, you may want to set a threshold for the score. You can do so setting the score_threshold
config value:
Default threshold is 0.5
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Charaf Rezrazi
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-recaptcha-enterprise with dependencies
google/cloud-recaptcha-enterprise Version ^1.2
illuminate/contracts Version ^9.0|^10.0|^11.0
spatie/laravel-package-tools Version ^1.13.0