PHPackages                             mosaxiv/cakephp-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. [Security](/categories/security)
4. /
5. mosaxiv/cakephp-invisible-recaptcha

ActiveCakephp-plugin[Security](/categories/security)

mosaxiv/cakephp-invisible-recaptcha
===================================

cakephp-invisible-recaptcha plugin for CakePHP

v1.0.0(8y ago)75.4k↓63.6%3[1 issues](https://github.com/mosaxiv/cakephp-invisible-recaptcha/issues)[1 PRs](https://github.com/mosaxiv/cakephp-invisible-recaptcha/pulls)MITPHP

Since Dec 31Pushed 3y ago2 watchersCompare

[ Source](https://github.com/mosaxiv/cakephp-invisible-recaptcha)[ Packagist](https://packagist.org/packages/mosaxiv/cakephp-invisible-recaptcha)[ RSS](/packages/mosaxiv-cakephp-invisible-recaptcha/feed)WikiDiscussions master Synced 3w ago

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

cakephp-invisible-recaptcha plugin for CakePHP
==============================================

[](#cakephp-invisible-recaptcha-plugin-for-cakephp)

[![MIT License](https://camo.githubusercontent.com/db79b92834d905629b1aea42c9aa493da02060189e2af90840b1be5d6bf6ddf7/687474703a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f7374796c653d666c6174)](LICENSE)[![Build Status](https://camo.githubusercontent.com/e2cb948d3c8f04a71087541d71174e517c3a9a15f601b7764a7ee2486e370e68/68747470733a2f2f7472617669732d63692e6f72672f6d6f73617869762f63616b657068702d696e76697369626c652d7265636170746368612e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/mosaxiv/cakephp-invisible-recaptcha)

Requirements
------------

[](#requirements)

- CakePHP 3.4.0+

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

[](#installation)

```
composer require mosaxiv/cakephp-invisible-recaptcha

```

[obtain a invisible reCAPTCHA API key.](https://www.google.com/recaptcha/admin#list)

SetUp
-----

[](#setup)

### Configure

[](#configure)

With the following test keys, you will always get No CAPTCHA and all verification requests will pass.
Please do not use these keys for your production traffic.

```
Configure::write('recaptcha', [
    'sitekey' => '6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI',
    'secretkey' => '6LeIxAcTAAAAAGG-vFI1TnRWxMZNFuojJ4WifJWe',
]);
```

### loadComponent

[](#loadcomponent)

```
$this->loadComponent('InvisibleReCaptcha.InvisibleReCaptcha',
    [
        // options
    ]);
```

Some of the options available:

OptionDescriptionDefaultValuesecretkeyOverride secret API keynullsitekeyOverride site API keynullhlOptional. Forces the widget to render in a specific language. Auto-detects the user's language if unspecified. (See [language codes](https://developers.google.com/recaptcha/docs/language))nullbadgeOptional. Reposition the reCAPTCHA badge.`inline` allows you to control the CSS.bottomrightbottomright
 bottomleft
 inlinetypeOptional. The type of CAPTCHA to serve.imageaudio
 imagetimeoutThe number of seconds to wait for reCAPTCHA servers before give up.3`integer`noscriptInclude `` contenttrue`boolean`docs

Used
====

[](#used)

### Display recaptcha in your view

[](#display-recaptcha-in-your-view)

```
