PHPackages                             freddiegar/g-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. freddiegar/g-recaptcha

ActiveLibrary[Security](/categories/security)

freddiegar/g-recaptcha
======================

Library agnostic to connect/valid Google Recaptcha in PHP projects

1.0.0(8y ago)01.8kMITPHPPHP &gt;=5.6

Since Dec 19Pushed 7y ago1 watchersCompare

[ Source](https://github.com/freddiegar/g-recaptcha)[ Packagist](https://packagist.org/packages/freddiegar/g-recaptcha)[ RSS](/packages/freddiegar-g-recaptcha/feed)WikiDiscussions master Synced today

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

Library agnostic to valid Google reCaptcha in PHP projects
==========================================================

[](#library-agnostic-to-valid-google-recaptcha-in-php-projects)

Valid g-ReCaptcha 2.0 in your back-end project

You can view details to back-end integration in [docs](https://developers.google.com/recaptcha/docs/verify)

Use example
-----------

[](#use-example)

```
  $params = [
       'secret' => 'YOUR_SECRET_FROM_RECAPTCHA',
       'reCaptcha' => $_POST['g-recaptcha-response']
       // Optional parameters
       'userAgent' => 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.108 Safari/537.36'
       'ipAddress' => '127.0.0.1',
  ];

  try {
      $captcha = new ReCaptcha2($params);
      $request = $captcha->request();

      if ($request->isValid()) {
          // Dont is bot, ready!
      } else {
          $error = $captcha->getErrors();
      }
  } catch (Exception $exception) {
      $error = $exception->getMessage();
  }
```

Side Client
-----------

[](#side-client)

You can view details to front-end integration in [docs](https://developers.google.com/recaptcha/docs/invisible)

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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 ~0 days

Total

3

Last Release

3062d ago

### Community

Maintainers

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

---

Top Contributors

[![freddiegar](https://avatars.githubusercontent.com/u/8710491?v=4)](https://github.com/freddiegar "freddiegar (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/freddiegar-g-recaptcha/health.svg)

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

###  Alternatives

[defuse/php-encryption

Secure PHP Encryption Library

3.9k162.4M212](/packages/defuse-php-encryption)[roave/security-advisories

Prevents installation of composer packages with known security vulnerabilities: no API, simply require it

2.9k97.3M6.4k](/packages/roave-security-advisories)[mews/purifier

Laravel 5/6/7/8/9/10 HtmlPurifier Package

2.0k16.7M112](/packages/mews-purifier)[robrichards/xmlseclibs

A PHP library for XML Security

41278.1M118](/packages/robrichards-xmlseclibs)[bjeavons/zxcvbn-php

Realistic password strength estimation PHP library based on Zxcvbn JS

86917.5M63](/packages/bjeavons-zxcvbn-php)[enlightn/security-checker

A PHP dependency vulnerabilities scanner based on the Security Advisories Database.

33732.2M110](/packages/enlightn-security-checker)

PHPackages © 2026

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