PHPackages                             giginc/cakephp3-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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. giginc/cakephp3-recaptcha

ActiveCakephp-plugin[Validation &amp; Sanitization](/categories/validation)

giginc/cakephp3-recaptcha
=========================

Recaptcha for CakePHP 3

0.0.5(4y ago)13.7k1MITPHPPHP &gt;=5.6

Since Jan 4Pushed 4y ago3 watchersCompare

[ Source](https://github.com/giginc/cakephp3-recaptcha)[ Packagist](https://packagist.org/packages/giginc/cakephp3-recaptcha)[ Docs](https://github.com/giginc/cakephp3-recaptcha)[ RSS](/packages/giginc-cakephp3-recaptcha/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelogDependencies (5)Versions (7)Used By (0)

Integrate Google Recaptcha v3 to your CakePHP3 project
======================================================

[](#integrate-google-recaptcha-v3-to-your-cakephp3-project)

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

[](#installation)

You can install this plugin into your CakePHP application using [composer](http://getcomposer.org).

The recommended way to install composer packages is:

```
composer require giginc/cakephp3-recaptcha

```

followed by the command:

```
composer update

```

Load plugin
-----------

[](#load-plugin)

From command line:

```
bin/cake plugin load Recaptcha

```

Load Component and Configure
----------------------------

[](#load-component-and-configure)

Override default configure from loadComponent:

```
Recaptcha version2
$this->loadComponent('Recaptcha.Recaptcha', [
    'enable' => true,     // true/false
    'version' => 2,
    'sitekey' => 'your_site_key', //if you don't have, get one: https://www.google.com/recaptcha/intro/index.html
    'secret' => 'your_secret',
    'type' => 'image',  // image/audio
    'theme' => 'light', // light/dark
    'lang' => 'vi',      // default en
    'size' => 'normal'  // normal/compact
]);

Recaptcha version3
$this->loadComponent('Recaptcha.Recaptcha', [
    'enable' => true,     // true/false
    'version' => 3,
    'sitekey' => 'your_site_key', //if you don't have, get one: https://www.google.com/recaptcha/intro/index.html
    'secret' => 'your_secret',
    'scoreThreshold' => 0.5, // score threshold (default 0.5)
]);

```

Override default configure from app config file:

```
file: config/app.php
Recaptcha version2
    /**
     * Recaptcha configuration.
     *
     */
    'Recaptcha' => [
        'enable' => true,
        'version' => 2,
        'sitekey' => 'your_site_key',
        'secret' => 'your_secret',
        'type' => 'image',
        'theme' => 'light',
        'lang' => 'es',
        'size' => 'normal'
    ]

Recaptcha version3
    /**
     * Recaptcha configuration.
     *
     */
    'Recaptcha' => [
        'enable' => true,
        'version' => 3,
        'sitekey' => 'your_site_key',
        'secret' => 'your_secret',
    ]

```

Override default configure from recaptcha config file:

```
file: config/recaptcha.php

      // Display recaptcha box in your view, if configure has enable = false, nothing will be displayed

```

Verify in your controller function

```
    public function forgotPassword()
    {
        if ($this->request->is('post')) {
            if ($this->Recaptcha->verify()) { // if configure enable = false, it will always return true
                //do something here
            }
            $this->Flash->error(__('Please pass Google Recaptcha first'));
        }
    }

```

LICENSE
-------

[](#license)

[The MIT License (MIT) Copyright (c) 2013](http://opensource.org/licenses/MIT)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~10 days

Total

5

Last Release

1546d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e8ce2be16137320f7092d7bf77a5dceee9a8f0419213861b5e350d8a33c05125?d=identicon)[kgw](/maintainers/kgw)

---

Top Contributors

[![kgws](https://avatars.githubusercontent.com/u/83611?v=4)](https://github.com/kgws "kgws (8 commits)")

---

Tags

googlecakephprecaptchacakephp-plugin

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/giginc-cakephp3-recaptcha/health.svg)

```
[![Health](https://phpackages.com/badges/giginc-cakephp3-recaptcha/health.svg)](https://phpackages.com/packages/giginc-cakephp3-recaptcha)
```

###  Alternatives

[karser/karser-recaptcha3-bundle

Google ReCAPTCHA v3 for Symfony

1862.4M7](/packages/karser-karser-recaptcha3-bundle)[abanoubnassem/filament-grecaptcha-field

Provides a Google reCaptcha V2 field for the Filament Forms

27116.1k2](/packages/abanoubnassem-filament-grecaptcha-field)[crabstudio/recaptcha

Easily use Google Recaptcha in CakePHP projects

20112.2k1](/packages/crabstudio-recaptcha)[admad/cakephp-i18n

A CakePHP plugin for I18n related tools.

4449.5k](/packages/admad-cakephp-i18n)[cakephp-fr/recaptcha

To easily use Google Recaptcha (free CAPTCHA service that protect websites from spam and abuse) in CakePHP projects

1419.3k](/packages/cakephp-fr-recaptcha)[chrisshick/cakephp3-html-purifier

This is a CakePHP3 Purifier Plugin Behavior that cleanses data before it is marshalled into the entity.

12168.1k](/packages/chrisshick-cakephp3-html-purifier)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
