PHP code example of vaail / nocaptcha

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

    

vaail / nocaptcha example snippets


{!! app('captcha')->display(); !!}


$validate = Validator::make(Input::all(), [
	'g-recaptcha-response' => '



et  = '';
$sitekey = '';
$captcha = new \Vaail\NoCaptcha\NoCaptcha($secret, $sitekey);

if ( ! empty($_POST)) {
    var_dump($captcha->verifyResponse($_POST['g-recaptcha-response']));
    exit();
}