PHP code example of lookyman / recaptcha

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

    

lookyman / recaptcha example snippets


/**
 * @param string $name Control name
 * @param string|NULL $label Control label
 * @return \lookyman\ReCaptcha\Forms\Controls\ReCaptchaControl
 */
public function addReCaptcha($name, $label = NULL);

protected function createComponentMyReCaptchaForm()
{
	$form = new Nette\Application\UI\Form();
	$form->addReCaptcha('recaptcha', 'You have to solve this before you send the form');
	...
}