sknny / yii2-recaptcha-widget
A Yii2 widget for integrating Google reCAPTCHA.
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/sknny/yii2-recaptcha-widget
Requires
- php: >=7.4
- yiisoft/yii2: ~2.0
This package is auto-updated.
Last update: 2025-12-09 21:05:31 UTC
README
A simple widget for integrating Google reCAPTCHA into Yii2 projects.
Installation
composer require sknny/yii2-recaptcha-widget
-
Add the component to your configuration:
'components' => [ 'recaptcha' => [ 'class' => 'app\\components\\Recaptcha', 'siteKey' => 'siteKey', 'secretKey' => 'secretKey', ], ],
-
Use the widget in your view:
<?= app\widgets\RecaptchaWidget::widget(); ?>