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

ActiveLibrary

michaelyousrie/google-recaptcha
===============================

02PHP

Since Dec 22Pushed 3y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

what is this?
=============

[](#what-is-this)

This is a simple package that implements google recaptcha V3 into a laravel application to make it super easy to protect forms against bots and spammers (hopefully).

How to use it?
==============

[](#how-to-use-it)

Simple:

- you install it from composer using: `composer require michaelyousrie/google-recaptcha`
- Publish the config file using `php artisan vendor:publish` and choose the correct number for the service provider `Michael\GoogleRecpatcha\GoogleRecaptchaServiceProvider`
- A new config file will be published to your configuration folder (config/google\_recaptcha.php). Add your google recaptcha key and secret credentials there.
- Then go to your form and add the blade directive `@google_recaptcha([FORM-ID])` which will be responsible for the front-end side of the integration.
- Add the middleware `Michael\GoogleRecaptcha\Middlewares\ProtectedByGoogleRecaptcha` which will be responsible for the back-end side of the integration.

On a failed recaptcha verification, the user will be redirected back to the previous page `redirect()->back()` and a log entry will be added to your logs. Very simple.
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------

[](#on-a-failed-recaptcha-verification-the-user-will-be-redirected-back-to-the-previous-page-redirect-back-and-a-log-entry-will-be-added-to-your-logs-very-simple)

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity27

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/392cca19e7a31dcf8e05a21eac63da15ebcfe3536d1fb14504dc30d7637f09ac?d=identicon)[michaelyousrie](/maintainers/michaelyousrie)

---

Top Contributors

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

### Embed Badge

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

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

PHPackages © 2026

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