PHP code example of djordje / li3_recaptcha

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

    

djordje / li3_recaptcha example snippets



	Libraries::add('li3_recaptcha', array(
		'keys' => array(
			'public' => 'your_public_recaptcha_key',
			'private' => 'your_private_recaptcha_key',
			'mailhide_public' => 'your_public_mailhide_recaptcha_key',
			'mailhide_private' => 'your_private_mailhide_recaptcha_key'
		)
	));



	Libraries::add('li3_recaptcha', array(
		'options' => array(
			'theme' => 'white'
		)
	));



	$this->recaptcha->challenge(array(
		'theme' => 'blackglass'
	));



	if ($this->request->data && Recaptcha::check($this->request)) {
		// Do some stuff for users that passed reCAPTCHA check
	}