PHP code example of maatify / hcaptcha
1. Go to this page and download the library: Download maatify/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/ */
maatify / hcaptcha example snippets
/**
* Created by Maatify.dev
* User: Maatify.dev
* Date: 2024-08-07
* Time: 1:10 PM
* https://www.Maatify.dev
*/
use Maatify\HCaptcha\HCaptchaPublisherProValidation;
hCaptcha->getResponse();
// ====== get bool of validation
$result = $hCaptcha->isSuccess();
// ====== using maatify json on error response with json code with die and if success there is no error
$hCaptcha->jsonErrors();