enzonix / captcha
Enzonix captcha verification client
v1.0
2026-01-30 09:39 UTC
Requires
- php: ^8.0
- guzzlehttp/guzzle: ^7.0
Requires (Dev)
- phpunit/phpunit: ^10.0
README
A small, lightweight PHP client for verifying captcha tokens against Enzonix's verification endpoint (https://verify.enzonix.com).
Installation
Require the package with Composer:
composer require enzonix/captcha
Usage
use Enzonix\Captcha\CaptchaClient; $client = new CaptchaClient(getenv('ENZONIX_SECRET')); $response = $client->verify($_POST['captcha_token'] ?? ''); if ($response->isSuccess()) { // accepted $score = $response->getScore(); } else { $errors = $response->getErrors(); }