Download the PHP package talent-loom/laravel-recaptcha-v3 without Composer
On this page you can find all versions of the php package talent-loom/laravel-recaptcha-v3. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download talent-loom/laravel-recaptcha-v3
More information about talent-loom/laravel-recaptcha-v3
Files in talent-loom/laravel-recaptcha-v3
Package laravel-recaptcha-v3
Short Description PHP package for reCAPTCHA v3 in Laravel
License MIT
Informations about the package laravel-recaptcha-v3
Laravel ReCAPTCHA V3 is a very simply-to-use Laravel 9.x | 10.x | 11.x package to embed Google reCAPTCHA in your application.
What is reCAPTCHA?
Google offers reCAPTCHA v3 and reCAPTCHA Enterprise to help you protect your sites from fraudulent activities, spam, and abuse. To know more about the features of reCAPTCHA and reCAPTCHA Enterprise, see Comparison of features between reCAPTCHA versions.
You can find further info at Google reCAPTCHA Developer's Guide
reCAPTCHA available versions
At this moment there are 3 versions available (for web applications):
- v3, the latest (reCAPTCHA v3)
- v2 checkbox or simply reCAPTCHA v2 (reCAPTCHA v2)
- v2 invisible (Invisible reCAPTCHA)
Get your key first!
First of all you have to create your own API keys here
Follow the instructions and at the end of the process you will find Site key and Secret key. Keep them close..you will need soon!
System requirements
Package version | reCaptcha version | PHP version | Laravel version |
---|---|---|---|
v9.0.0 | v3 | 8.0.2 or greater | 9.x |
v10.0.0 | v3 | 8.1 or greater | 10.x |
v11.0.0 | v3 | 8.2 or greater | 11.x |
Composer
You can install the package via composer:
Configuration for LARAVEL 9.x | 10.x
Laravel 9.x or 10.x registered providers in config/app.php
:
You can use the facade for shorter code. Add ReCaptchaV3
to your aliases:
Configuration for LARAVEL 11.x
Laravel 11.x registered providers in bootstrap/providers.php
:
You can use the facade for shorter code. Add ReCaptchaV3
to your aliases in config/app.php
:
Publish package
Create config/recaptchaV3.php
configuration file using the following artisan command:
Environment Variables
To run this project, you will need to add the following environment variables to your .env file
RECAPTCHA_V3_SITE_KEY
RECAPTCHA_V3_SECRET_KEY
Reload config cache file
!!! IMPORTANT !!! Every time you change some configuration run the following shell command:
Implementation
Add validation in request
Embed in Blade
Insert js()
script before closing </head>
tag.
You can also use ReCaptchaV3::js()
.
Now you can use ReCaptchaV3::execute('action', 'form id')
.
like:
Running Tests
To run tests, run the following command
Authors
Support
For support, email syedshazeedul@gmail.