neverbehave / hcaptcha
Wrapper of hcaptcha
Installs: 3 451
Dependents: 1
Suggesters: 0
Security: 0
Stars: 5
Watchers: 4
Forks: 8
Open Issues: 0
Requires
- ext-json: *
This package is auto-updated.
Last update: 2024-11-29 06:03:55 UTC
README
Server side verification package
Quick Start
- Require Package
composer require neverbehave/hcaptcha
- Create an instance
$hcaptcha = new neverbehave\Hcaptcha('Your API KEY'); // Generate Challenge // Instance of HcaptchaResponse $client_challenge1 = $hcaptcha->challenge('Response'); $client_challenge2 = $hcaptcha->challenge('Another Response', 'Client IP'); // Read Result if ($client_challenge1->isSuccess()) { // Do Something } else { // Read Error $client_challenge1->getErrors(); } // Get Raw Response $client_challenge2->getRaw();