Download the PHP package yiirocks/recaptcha without Composer
On this page you can find all versions of the php package yiirocks/recaptcha. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package recaptcha
Yii3 reCAPTCHA
Google reCAPTCHA v2 and v3 form field + server-side validator for Yii3.
Stats for Nerds
Features
- reCAPTCHA v2 — checkbox/invisible widget field with theme, size, and type options
- reCAPTCHA v3 — score-based field that fetches its token on form submit (not page load), avoiding surprise challenge popups
- Server-side validation — PHP attribute rules (
RecaptchaV2Rule/RecaptchaV3Rule) verified against Google's siteverify endpoint - Score threshold + action matching — v3 rules can enforce a minimum score and an expected action name
- Zero-config ergonomics — once site keys are set, fields and rules work out of the box via a static registry, no explicit DI wiring needed in views
- i18n — validation and legal-notice messages are translated through Yii Translator
Requirements
- PHP 8.3+
- PSR-18 HTTP client
- PSR-17 request + stream factories
Installation
A PSR-18 client and PSR-17 factories are required. If your application already has them configured (e.g. via Guzzle, Symfony HTTP Client, or any other implementation), no further setup is needed. If not, install any compatible library, for example:
Documentation
Configuration (site keys, secrets, DI wiring), field options for v2/v3, validation rule parameters, and usage examples are all covered at Yii.rocks.
Testing
All versions of recaptcha with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.3
psr/http-client Version ^1.0
psr/http-factory Version ^1.0
psr/http-message Version ^1.0 || ^2.0
yiisoft/form-model Version ^1.1
yiisoft/html Version ^3.13 || ^4.0
yiisoft/request-provider Version ^1.3
yiisoft/translator Version ^3.0
yiisoft/validator Version ^2.5
yiisoft/widget Version ^2.2
psr/http-client Version ^1.0
psr/http-factory Version ^1.0
psr/http-message Version ^1.0 || ^2.0
yiisoft/form-model Version ^1.1
yiisoft/html Version ^3.13 || ^4.0
yiisoft/request-provider Version ^1.3
yiisoft/translator Version ^3.0
yiisoft/validator Version ^2.5
yiisoft/widget Version ^2.2
The package yiirocks/recaptcha contains the following files
Loading the files please wait ...