First release of the full Symfony bundle rewrite. The previous 1.x line was a single-class helper; 2.0 is a proper, zero-config Symfony bundle with first-class form, validator and Twig integrations.
EasyHcaptchaBundle with auto-config - installs via Symfony Flex with zero manual wiring.HcaptchaVerifier (+ HcaptchaVerifierInterface) with strict types and a HcaptchaResponse value object carrying success, errorCodes, hostname, challengeTs, Enterprise score / scoreReason and credit.HcaptchaExceptionInterface.HcaptchaType with an auto-attached Hcaptcha constraint and a default form theme.#[Hcaptcha] + HcaptchaValidator with request-parameter fallback for nested forms.hcaptcha_script(), hcaptcha_widget(), hcaptcha_invisible_widget(), hcaptcha_site_key().site_key, secret_key, verify_url, timeout, enabled (test-mode toggle with no HTTP call), http_client, default_widget.docs/{en,fr,es}/.HcaptchaVerifier moved from Ethsam\EasyHcaptcha\HcaptchaVerifier to Ethsam\EasyHcaptcha\Verifier\HcaptchaVerifier. Inject HcaptchaVerifierInterface instead.parameters: to the bundle key easy_hcaptcha:.verify() returns HcaptchaResponse instead of bool. The object implements Stringable, so if ($verifier->verify($token)) keeps working via PHP coercion; strict comparisons (=== true) must be migrated.verify_url is rejected at container build time unless it uses HTTPS.hcaptcha_widget() silently drops attribute names that don't match [a-zA-Z_][\w:.\-]*.hcaptcha_script({ onload, render }) silently drops values that aren't valid JS identifiers.See docs/en/upgrade-from-1.x.md - also available in Français and Español.
Version 1
Full Changelog: https://github.com/ethsam/easy-hcaptcha/commits/publish
How can I help you explore Laravel packages today?