PHPackages                             davmixcool/google-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. davmixcool/google-recaptcha

ActiveLibrary[Security](/categories/security)

davmixcool/google-recaptcha
===========================

Google Recaptcha Package For PHP front and backend.

0.8.2(7y ago)3272MITPHPPHP &gt;=5.5.0

Since Dec 24Pushed 7y ago1 watchersCompare

[ Source](https://github.com/davmixcool/GoogleRecaptcha)[ Packagist](https://packagist.org/packages/davmixcool/google-recaptcha)[ Docs](https://github.com/davmixcool/GoogleRecaptcha)[ RSS](/packages/davmixcool-google-recaptcha/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

Google Recaptcha.
=================

[](#google-recaptcha)

A PHP package which supports both back-end and front-end of Google recaptcha v2.

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

[](#requirements)

- PHP 5.5 and above

Steps:
------

[](#steps)

- [Installation](#installation)
- [Usage](#usage)
- [Maintainers](#maintainers)
- [License](#license)

### Installation

[](#installation)

**Composer**

Run the following command to include this package via Composer

```
composer require davmixcool/google-recaptcha
```

### Usage

[](#usage)

Simple to use.

```
use Davmixcool\GoogleRecaptcha;

	//include the recaptcha configurations globally
	$googleRecaptcha = new GoogleRecaptcha([
		'secret_key' => 'Your secret key',
		'site_key' => 'Your site key',
		'theme' => 'light'
	]);

	//Place the renderJs before the closing body tag.
	$googleRecaptcha->renderJs();

	//Place the renderCaptcha where you want to display the captcha.
	$googleRecaptcha->renderCaptcha();

	// Check if captcha was passed successfully
	if ($googleRecaptcha->check()) {
	    // Perform success action

	} else {
	    // Throw an error if catcha was not solved successfully
	}
```

### Maintainers

[](#maintainers)

This package is maintained by [David Oti](http://github.com/davmixcool) and you!

### License

[](#license)

This package is licensed under the [MIT license](https://github.com/davmixcool/GoogleRecaptcha/blob/master/LICENSE).

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 87.5% 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

Unknown

Total

1

Last Release

2693d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/58f0b7a6b4a01c486263394e1414b3296ded35a5b565213a77aa906410137beb?d=identicon)[davmixcool](/maintainers/davmixcool)

---

Top Contributors

[![davmixcool](https://avatars.githubusercontent.com/u/5640065?v=4)](https://github.com/davmixcool "davmixcool (7 commits)")[![peter279k](https://avatars.githubusercontent.com/u/9021747?v=4)](https://github.com/peter279k "peter279k (1 commits)")

---

Tags

googlesecurityrecaptchacaptchaprotectionrecaptcha v3GoogleReCaptchareCAPTCHA V2Bot Filter

### Embed Badge

![Health badge](/badges/davmixcool-google-recaptcha/health.svg)

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

###  Alternatives

[karser/karser-recaptcha3-bundle

Google ReCAPTCHA v3 for Symfony

1862.4M7](/packages/karser-karser-recaptcha3-bundle)[2captcha/2captcha

PHP package for easy integration with 2captcha API

86430.0k3](/packages/2captcha-2captcha)[phelium/recaptcha

reCAPTCHA v2 class

4389.4k](/packages/phelium-recaptcha)[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)[cake17/cakephp-recaptcha

\[DEPRECIATED\] Please use https://github.com/cakephp-fr/recaptcha/

1211.0k1](/packages/cake17-cakephp-recaptcha)

PHPackages © 2026

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