PHP code example of arrilot / google-recaptcha
1. Go to this page and download the library: Download arrilot/google-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/ */
arrilot / google-recaptcha example snippets
\Arrilot\GoogleRecaptcha\Recaptcha::getInstance()
->setPublicKey('6Lf1_...')
->setSecretKey('6Lf1_...')
->setLanguage('ru');
function recaptcha()
{
return \Arrilot\GoogleRecaptcha\Recaptcha::getInstance();
}