PHPackages                             demi/recaptcha - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Security](/categories/security)
4. /
5. demi/recaptcha

ActiveYii2-extension[Security](/categories/security)

demi/recaptcha
==============

Yii2 wrapper for reCAPTCHA widget

1.0.1(10y ago)07102GNUPHPPHP &gt;=5.4.0

Since Jul 10Pushed 8y ago1 watchersCompare

[ Source](https://github.com/demisang/yii2-recaptcha)[ Packagist](https://packagist.org/packages/demi/recaptcha)[ Docs](https://github.com/demisang/yii2-recaptcha#readme)[ RSS](/packages/demi-recaptcha/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (2)Versions (4)Used By (2)

Yii2-reCAPTCHA
==============

[](#yii2-recaptcha)

Yii2 wrapper for \[reCAPTCHA\]( widget)

Installation
------------

[](#installation)

Run

```
composer require "demi/recaptcha" "~1.0"

```

Configurations
==============

[](#configurations)

---

[Register new reCAPTCHA API keys](https://www.google.com/recaptcha/admin)

Add keys to `/common/config/params.php`:

```
return [
    // reCAPTCHA API keys
    'reCAPTCHA.siteKey' => 'xxxxxxxxx',
    'reCAPTCHA.secretKey' => 'xxxxxxxxx',
];
```

In the form:

```
