frootbox / captcha-recaptcha
reCAPTCHA of Google for the forms of the Frootbox CMS: v2 with a box or v3 with a score, loaded only after consent
Package info
github.com/frootbox-packages/captcha-recaptcha
Type:frootbox-extension
pkg:composer/frootbox/captcha-recaptcha
Requires
- php: >=8.5
- frootbox/core: ^0.1
- frootbox/forms: ^0.1
- symfony/http-client: ^8.1
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-11-04 22:33:18 UTC
README
reCAPTCHA by Google as a captcha for the forms of the
Frootbox CMS (frootbox/forms):
- Version 2 with the box "I am not a robot" or version 3 with a score, set in the settings "reCAPTCHA" with the site key and the secret key
- Selectable for a form, or as the standard of the website, only once
both keys are set (
ConfigurableCaptcha) - The markup sits behind the consent of the visitor (
external(), the servicefrootbox/captcha-recaptcha/recaptcha); the script of Google loads only at the form, once per page, in the language of the form - The server checks the token with
siteverify, without the address of the visitor. No token or a failed v2 is an error at the captcha; a v3 score below the lowest score, a token of another action or Google out of reach puts the entry in the spam folder
It is also an example for other providers: a CaptchaProvider with
widget() and verify(), registered as a Captcha with a service,
and the events frootbox:forms-sending and frootbox:forms-failed of
the forms in the browser.
MIT licensed.
Source and issues
This package is developed in the Frootbox monorepo and mirrored here read-only. Questions, bugs and ideas go there, see the documentation.