PHPackages                             beingnikhilesh/googlerecaptcha - 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. beingnikhilesh/googlerecaptcha

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

beingnikhilesh/googlerecaptcha
==============================

Google reCAPTCHA PHP Library to validate user responses with Google reCAPTCHA v3.

v0.0.1(1y ago)09MITPHPPHP &gt;=7.3

Since Sep 13Pushed 1y ago1 watchersCompare

[ Source](https://github.com/beingnikhilesh/GoogleRecaptcha)[ Packagist](https://packagist.org/packages/beingnikhilesh/googlerecaptcha)[ RSS](/packages/beingnikhilesh-googlerecaptcha/feed)WikiDiscussions main Synced 1mo ago

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

GoogleRecaptcha, beingnikhilesh/GoogleRecaptcha
===============================================

[](#googlerecaptcha-beingnikhileshgooglerecaptcha)

A PHP Library to seamlessly make API Calls to the Google Recaptcha Service and verify if the User is a human or a Bot.

What is Google Recaptcha
========================

[](#what-is-google-recaptcha)

Google reCAPTCHA is a service that helps protect websites from spam and abuse by verifying whether a user is a human or a bot. It does this through a series of challenges that are easy for humans to solve but difficult for bots

Features
========

[](#features)

- **Google reCAPTCHA v3 integration**
- **Configurable threshold score** for spam detection
- **Modular structure** for easy integration and customization

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

[](#requirements)

- PHP 7.4 or higher
- Composer
- Google reCAPTCHA API Keys (Secret &amp; Site Key)
- Guzzle HTTP Client

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

[](#installation)

The recommended way to install this Library is through Composer

```
  composer require beingnikhilesh\GoogleRecaptcha
```

Usage/Examples
--------------

[](#usageexamples)

```
import Component from 'my-project'

function App() {
  return
}
```

Library Usage/Examples
----------------------

[](#library-usageexamples)

1. Open the config.php file and Edit the Google Key and Google Secret as recieved from Google Recaptcha Site.
2. Use the following code to get Veridy if is Human or Robot

```
use beingnikhilesh\GoogleRecaptcha\GoogleRecaptcha;

/**
* Pass the $token and $action to the Validate Function
* @$token Token received from POST Request
* @$action passed in View page and received via POST Request
*
* @ response    TRUE  - If request is Human
*               FALSE - If the request is ROBOT
*/
$isValid = GoogleRecaptcha::_validate($token, $action);

/*
* Additionally if you want to Pass the Google Secret and Google Key Manually Everytime, you can do so as below
* @$googleSecret    Google Secret recieved from Google Recaptcha Site
* @$googleKey       Google Key recieved from Google Recaptcha Site
*
* @return           NULL
*/
GoogleRecaptcha::credentials($googleSecret, $googleKey);
```

How to Implement Google Recaptcha
---------------------------------

[](#how-to-implement-google-recaptcha)

For More Details how to implement Google Recaptcha

-
-
-
-
-
-

License
-------

[](#license)

GoogleRecaptcha is made available under the MIT License ([MIT](https://choosealicense.com/licenses/mit/))

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance37

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity24

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

Unknown

Total

1

Last Release

603d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6cf0b4286e98736692e27d55812827656aa2ce671c33a099be1b5a0b13648b44?d=identicon)[beingnikhilesh](/maintainers/beingnikhilesh)

---

Top Contributors

[![beingnikhilesh](https://avatars.githubusercontent.com/u/20642249?v=4)](https://github.com/beingnikhilesh "beingnikhilesh (3 commits)")

---

Tags

phpgooglerecaptchacaptchaGoogle ReCaptcha

### Embed Badge

![Health badge](/badges/beingnikhilesh-googlerecaptcha/health.svg)

```
[![Health](https://phpackages.com/badges/beingnikhilesh-googlerecaptcha/health.svg)](https://phpackages.com/packages/beingnikhilesh-googlerecaptcha)
```

###  Alternatives

[josiasmontag/laravel-recaptchav3

Recaptcha V3 for Laravel package

2641.6M2](/packages/josiasmontag-laravel-recaptchav3)[albertcht/invisible-recaptcha

Invisible reCAPTCHA For Laravel.

6031.6M6](/packages/albertcht-invisible-recaptcha)[arcanedev/no-captcha

No CAPTCHA (new Google reCAPTCHA) with Laravel support

370730.4k6](/packages/arcanedev-no-captcha)[contributte/recaptcha

Google reCAPTCHA for Nette - Forms

421.3M4](/packages/contributte-recaptcha)

PHPackages © 2026

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