PHP code example of mannysoft / recaptcha

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

    

mannysoft / 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' ]);