sknny/yii2-recaptcha-widget

A Yii2 widget for integrating Google reCAPTCHA.

Maintainers

Package info

github.com/Sknny/yii2-recaptcha-widget

pkg:composer/sknny/yii2-recaptcha-widget

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

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

This package is auto-updated.

Last update: 2026-04-09 21:52:52 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(); ?>