PHP code example of tonyaxo / yii2-recaptcha
1. Go to this page and download the library: Download tonyaxo/yii2-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/ */
tonyaxo / yii2-recaptcha example snippets
'components' => [
'recaptcha' => [
'class' => 'recaptcha\ReCaptchaComponent',
'siteKey' => 'site_key',
'secretKey' => 'key_secret',
],
];
<?= $form->field($model, 'reCaptcha')->widget(ReCaptcha::class, [
'id' => 'sign-up-captcha',
'render' => ReCaptcha::RENDER_EXPLICIT,
])->label(false)
php composer.phar