PHP code example of j25 / google-captcha

1. Go to this page and download the library: Download j25/google-captcha 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/ */

    

j25 / google-captcha example snippets


    'providers' => [
        // ...
        'J25\GoogleCaptcha\Providers\GoogleCaptchaServiceProvider',
    ]

        use J25\GoogleCaptcha\GoogleCaptcha;


        Validator::make($input, [
            'recaptcha_response' => 'e'					=> ['string'],
                'text'					=> ['string'],
	    		'recaptcha_response'	=> ['
html
    //post.blade.php
<form action="{{ route ('post')}}">
    <x-google-captcha />
</form