PHPackages                             szaboolcs/yii2-invisible-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. szaboolcs/yii2-invisible-recaptcha

ActiveYii2-extension

szaboolcs/yii2-invisible-recaptcha
==================================

Google Invisible reCaptcha for Yii2

132.7k↓100%7[1 issues](https://github.com/szaboolcs/yii2-invisible-recaptcha/issues)[1 PRs](https://github.com/szaboolcs/yii2-invisible-recaptcha/pulls)PHP

Since Mar 14Pushed 7y ago1 watchersCompare

[ Source](https://github.com/szaboolcs/yii2-invisible-recaptcha)[ Packagist](https://packagist.org/packages/szaboolcs/yii2-invisible-recaptcha)[ RSS](/packages/szaboolcs-yii2-invisible-recaptcha/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Google Invisible reCaptcha for Yii2
===================================

[](#google-invisible-recaptcha-for-yii2)

Based on reCaptcha API 2.0.

### Installation

[](#installation)

The preferred way to install this extension is through composer.

- Either run

`php composer.phar require --prefer-dist "szaboolcs/yii2-invisible-recaptcha" "*"`

or add

`"szaboolcs/yii2-invisible-recaptcha" : "*"`

to the require section of your application's composer.json file.

- Sign up for an [reCAPTCHA API keys](https://www.google.com/recaptcha/admin#createsite).
- Add the next component to your configuration file (web.php)

```
'components' =>  [
  'captcha' => [
    'name'    => 'captcha',
    'class'   => 'szaboolcs\recaptcha\InvisibleRecaptcha',
    'siteKey' => 'your siteKey',
    'secret'  => 'your secret'
  ]
]

```

### Usage

[](#usage)

login.php

```
