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

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

quadcompanies/google-recaptcha-enterprise
=========================================

Laravel package providing a Google reCAPTCHA Enterprise validation rule and a Blade drop-in

v0.1.5(3mo ago)0420↑166.7%MITPHPPHP ^8.1

Since Oct 8Pushed 3mo agoCompare

[ Source](https://github.com/quadcompanies/google-recaptcha-enterprise)[ Packagist](https://packagist.org/packages/quadcompanies/google-recaptcha-enterprise)[ RSS](/packages/quadcompanies-google-recaptcha-enterprise/feed)WikiDiscussions main Synced 3w ago

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

Google reCAPTCHA Enterprise (Laravel) — Package Template
========================================================

[](#google-recaptcha-enterprise-laravel--package-template)

This repository is a minimal Laravel package template that provides:

- A validation Rule: `Components\\GoogleReCaptchaEnterprise\\Rules\\ReCaptchaEnterpriseRule`
- A Blade drop-in view: `resources/views/recaptcha-enterprise.blade.php` (published to `views/vendor/recaptcha-enterprise`)
- A service provider: `ReCaptchaEnterpriseServiceProvider` which registers the rule and publishes config/views/lang

Installation (local development):

1. Require this package via composer (path repository or VCS) or include it directly in `composer.json` of your app.
2. Publish configuration, views and language files:

    php artisan vendor:publish --provider="Components\\GoogleReCaptchaEnterprise\\ReCaptchaEnterpriseServiceProvider" --tag="config" php artisan vendor:publish --provider="Components\\GoogleReCaptchaEnterprise\\ReCaptchaEnterpriseServiceProvider" --tag="views" php artisan vendor:publish --provider="Components\\GoogleReCaptchaEnterprise\\ReCaptchaEnterpriseServiceProvider" --tag="lang"

Usage:

Ensure you provide the following environment variables RECAPTCHA\_ENTERPRISE\_PROJECT\_ID={name of the Google Project containing the keys} RECAPTCHA\_ENTERPRISE\_SITE\_KEY={your-google-site-key} RECAPTCHA\_ENTERPRISE\_SECRET={your-google-secret}

1. To use the validation rule in a FormRequest or validator, import and instantiate it:

    use Components\\GoogleReCaptchaEnterprise\\Rules\\ReCaptchaEnterpriseRule;

    // Example: pass the expected action string (must match your JS action) $request-&gt;validate(\[ 'g-recaptcha-response' =&gt; \[new ReCaptchaEnterpriseRule('submit\_form')\], \]);

    // Or pass a config array and an action: $request-&gt;validate(\[ 'g-recaptcha-response' =&gt; \[new ReCaptchaEnterpriseRule(\['project\_id' =&gt; 'my-project-id'\], 'submit\_form')\], \]);
2. Or use the validator extension rule name `recaptcha_enterprise` after publishing the package.
3. To drop the Blade snippet into a form, include the view. Pass the action string so the JS stub uses the same action name you validate server-side:

    @include('recaptcha-enterprise::recaptcha-enterprise', \['action' =&gt; 'submit\_form'\])

    // If you publish the view and want a custom input id, pass `inputId` as well: @include('recaptcha-enterprise::recaptcha-enterprise', \['action' =&gt; 'submit\_form', 'inputId' =&gt; 'recaptcha\_token'\])

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance82

Actively maintained with recent releases

Popularity17

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity39

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

Recently: every ~42 days

Total

6

Last Release

91d ago

PHP version history (2 changes)v0.1.0PHP ^8.0

v0.1.5PHP ^8.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/84735568?v=4)[Hans Bacares](/maintainers/hanssignature)[@hanssignature](https://github.com/hanssignature)

---

Top Contributors

[![hbacares](https://avatars.githubusercontent.com/u/26798693?v=4)](https://github.com/hbacares "hbacares (6 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[illuminate/validation

The Illuminate Validation package.

18837.7M1.6k](/packages/illuminate-validation)[laravel-validation-rules/credit-card

Validate credit card number, expiration date, cvc

2422.3M6](/packages/laravel-validation-rules-credit-card)[danielebarbaro/laravel-vat-eu-validator

A simple package that validates EU VAT numbers against the central ec.europa.eu database

41401.6k](/packages/danielebarbaro-laravel-vat-eu-validator)

PHPackages © 2026

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