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