PHP code example of jhonoryza / recaptcha-v3

1. Go to this page and download the library: Download jhonoryza/recaptcha-v3 library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

jhonoryza / recaptcha-v3 example snippets




use Illuminate\Http\Request
use Jhonoryza\RecaptchaV3\Recaptcha;

public function store(Request $request) {
 
    $request()->validate([
     'email' => ['

GOOGLE_RECAPTCHA_SITE_KEY=
GOOGLE_RECAPTCHA_SECRET_SITE_KEY=
GOOGLE_RECAPTCHA_MIN_SCORE=0.5
GOOGLE_RECAPTCHA_URL="https://www.google.com/recaptcha/api/siteverify"
bash
php artisan vendor:publish --tag=recaptcha-v3-config