recaptcha provides Google reCAPTCHA v2 and v3 field + server-side validation for your Yii Framework 3 applications.
Features
v2 challenge
Image or audio challenge field with Light/Dark themes, Normal/Compact/Invisible sizes, and JS success/expiry/error callbacks
v3 score-based
Invisible, score-based field with per-action validation and a configurable badge (bottom-right, bottom-left, or hidden with legal notice)
Server-side validation
PHP attributes — #[RecaptchaV2Rule] and #[RecaptchaV3Rule] — integrate directly into Yii3 form validation
Zero-config wiring
Site keys and secrets read from config or environment variables and auto-registered via the config-plugin, no manual client setup needed
PSR-18/17 based
Works with any PSR-18 HTTP client and PSR-17 request/stream factories already in your app
i18n
Translatable validation and legal-notice messages via yiisoft/translator