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

dev-main 2025-01-09 18:53 UTC

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
  1. Add the component to your configuration:

    'components' => [
        'recaptcha' => [
            'class' => 'app\\components\\Recaptcha',
            'siteKey' => 'siteKey',
            'secretKey' => 'secretKey',
        ],
    ],
  2. Use the widget in your view:

    <?= app\widgets\RecaptchaWidget::widget(); ?>