Search by

enzonix / captcha

AlexPads

Enzonix captcha verification client

v1.1 2026-05-05 09:00 UTC

This package is auto-updated.

Last update: 2026-09-05 09:44:44 UTC


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();
}