enzonix/captcha

Enzonix captcha verification client

Maintainers

Package info

github.com/Enzonix-LLC/captcha-php

pkg:composer/enzonix/captcha

Statistics

Installs: 3

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.0 2026-01-30 09:39 UTC

This package is auto-updated.

Last update: 2026-03-29 01:14:17 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();
}