PHPackages                             pctux/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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. pctux/yii2-invisible-recaptcha

ActiveYii2-extension[Authentication &amp; Authorization](/categories/authentication)

pctux/yii2-invisible-recaptcha
==============================

Google Invisible reCaptcha for Yii2

0.2.1(8y ago)010.4k↓50%MITPHP

Since Aug 22Pushed 8y ago1 watchersCompare

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

READMEChangelog (3)Dependencies (1)Versions (4)Used By (0)

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

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

Based on reCaptcha API 2.0. Fork of [szaboolcs/yii2-invisible-recaptcha](https://github.com/szaboolcs/yii2-invisible-recaptcha).

### Installation

[](#installation)

The preferred way to install this extension is through composer.

- Either run

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

or add

`"pctux/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'   => 'pctux\recaptcha\InvisibleRecaptcha',
    'siteKey' => 'your siteKey',
    'secret'  => 'your secret'
  ]
]

```

### Usage

[](#usage)

login.php

```
