PHP code example of greggilbert / recaptcha

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

    

greggilbert / recaptcha example snippets


      'recaptcha' => 'The :attribute field is not correct.',
  

    $rules = [
        // ...
        'g-recaptcha-response' => '

    $rules = [
        // ...
        'recaptcha_response_field' => '

    // ...
    'options' => [
		'lang' => 'ja',
	],

echo Recaptcha::render([ 'lang' => 'fr' ]);

    'options' => [
        'lang' => 'fr',
	],

    // ...
    'template' => 'customCaptcha',

echo Recaptcha::render([ 'template' => 'customCaptcha' ]);