PHP code example of expl0it3r / kirby-uniform-recaptcha
1. Go to this page and download the library: Download expl0it3r/kirby-uniform-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/ */
expl0it3r / kirby-uniform-recaptcha example snippets
return [
'expl0it3r.uniform-recaptcha.siteKey' => 'my-site-key',
'expl0it3r.uniform-recaptcha.secretKey' => 'my-secret-key',
'expl0it3r.uniform-recaptcha.acceptableScore' => 0.5
];
$form = new Form(/* ... */);
if ($kirby->request()->is('POST'))
{
$form->recaptchaGuard()
->emailAction(/* ... */);
}
html+php
<?= recaptchaField() html+php
<form action="<?= $page->url()