Download the PHP package ethsam/easy-hcaptcha without Composer
On this page you can find all versions of the php package ethsam/easy-hcaptcha. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package easy-hcaptcha
easy-hcaptcha
A modern, zero-config Symfony bundle for hCaptcha: server-side verification, Twig widget, Form Type and Validation Constraint — ready in under a minute.
Languages / Langues / Idiomas: English · Español
Features
- Zero-config install via Symfony Flex
- Strict-typed
HcaptchaVerifierreturning a richHcaptchaResponsevalue object (success,errorCodes,hostname,scorefor Enterprise, …) - Symfony Form Type (
HcaptchaType) with auto-attached validator - Symfony Validation Constraint (
#[Hcaptcha]) for any DTO/property - Twig functions:
hcaptcha_script(),hcaptcha_widget(),hcaptcha_invisible_widget() - HTTPS-only verify URL, attribute name allow-list, JS callback identifier check
- Test-mode toggle (
enabled: false) — no HTTP call, always succeeds - PSR-3 logging on transport failures
- 100% PHP 8.1+ / Symfony 6.4 LTS · 7.x compatible
Requirements
- PHP 8.1 or higher
- Symfony 6.4 LTS or 7.x
Quick install
Then in .env:
And in config/packages/easy_hcaptcha.yaml:
30-second usage
Documentation
Full documentation in three languages:
| English | Français | Español |
|---|---|---|
| 📖 Index | 📖 Index | 📖 Índice |
| Installation | Installation | Instalación |
| Configuration | Configuration | Configuración |
| Twig usage | Utilisation Twig | Uso con Twig |
| Form Type | Form Type | Form Type |
| Validator | Validateur | Validador |
| Controller | Contrôleur | Controlador |
| Upgrade from 1.x | Migration depuis 1.x | Migración desde 1.x |
Testing your app without hitting the API
In config/packages/test/easy_hcaptcha.yaml:
Contributing
Pull requests welcome. Run the test suite locally:
Changelog
See CHANGELOG.md for a detailed history of releases.
License
Released under the MIT License — see the file for details.
Originally authored by Samuel ETHEVE.
All versions of easy-hcaptcha with dependencies
symfony/config Version ^6.4 || ^7.0
symfony/dependency-injection Version ^6.4 || ^7.0
symfony/form Version ^6.4 || ^7.0
symfony/http-client Version ^6.4 || ^7.0
symfony/http-foundation Version ^6.4 || ^7.0
symfony/http-kernel Version ^6.4 || ^7.0
symfony/twig-bundle Version ^6.4 || ^7.0
symfony/validator Version ^6.4 || ^7.0
twig/twig Version ^3.0