rafalmasiarek/php-hcaptcha

PHP hCaptcha Component Library

Installs: 8

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/rafalmasiarek/php-hcaptcha

v1.0.0 2020-05-19 22:35 UTC

This package is auto-updated.

Last update: 2025-10-24 22:02:54 UTC


README

PHP hCaptcha Component Library

I accidentally discovered that Cloudflare stop using reCaptch in favor of another hCaptcha solution, which I started using this too with hope they collect less data about us than Google does Cloudflare wrote an article about it : Moving from reCAPTCHA to hCaptcha

Basic usage on backend validator:

<?php

$privToken = '';
$hcaptcha = new rafalmasiarek\hCaptcha($privToken);
$verify   = $hcaptcha->verify($_POST['h-captcha-response'])
if( $verify['success'] == true) {
    echo "Legit request!";
}