PHPackages                             justijndepover/laravel-google-recaptcha-v2 - 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. justijndepover/laravel-google-recaptcha-v2

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

justijndepover/laravel-google-recaptcha-v2
==========================================

Easily add Google Recaptcha V2 to your Laravel application forms

0.2.0(5y ago)052MITPHP

Since May 6Pushed 5y ago1 watchersCompare

[ Source](https://github.com/justijndepover/laravel-google-recaptcha-v2)[ Packagist](https://packagist.org/packages/justijndepover/laravel-google-recaptcha-v2)[ RSS](/packages/justijndepover-laravel-google-recaptcha-v2/feed)WikiDiscussions master Synced 3w ago

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

Laravel Google Recaptcha V2
===========================

[](#laravel-google-recaptcha-v2)

[![Latest Version on Packagist](https://camo.githubusercontent.com/94aa2d6a74a51a49929717688b861d0619e1a3d201aa4a8dcab64d9929e9f3d0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a757374696a6e6465706f7665722f6c61726176656c2d676f6f676c652d7265636170746368612d76322e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/justijndepover/laravel-google-recaptcha-v2)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/6d6b7fcf523993e0827fa7d136dbb295a693f8721b40ff2518dbafc3ed4b6c79/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a757374696a6e6465706f7665722f6c61726176656c2d676f6f676c652d7265636170746368612d76322e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/justijndepover/laravel-google-recaptcha-v2)

Easily add Google Recaptcha V2 to your Laravel application forms

Caution
-------

[](#caution)

This application is still in development and could implement breaking changes. Please use at your own risk.

Explanation
-----------

[](#explanation)

This package adds an easy integration to implement google recaptcha v2 in your Laravel application and validate your request.

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

[](#installation)

You can install the package with composer

```
composer require justijndepover/laravel-google-recaptcha-v2
```

After installation you can optionally publish your configuration file

```
php artisan vendor:publish --tag="laravel-google-recaptcha-v2-config"

```

configuration
-------------

[](#configuration)

This is the config file

```
return [

    /*
     * Your Google Recaptcha key
     */
    'key' => env('GOOGLE_RECAPTCHA_KEY'),

    /*
     * Your Google Recaptcha secret
     */
    'secret' => env('GOOGLE_RECAPTCHA_SECRET'),

    /*
     * Skip recaptcha validation in local development
     */
    'skip_in_local_development' => true,

];
```

The package has a default option to skip validation in local development

Usage
-----

[](#usage)

include the following API keys in your `.env` files:

```
GOOGLE_RECAPTCHA_KEY=yourkey
GOOGLE_RECAPTCHA_SECRET=yoursecret
```

include the following in your app layout to render the recaptcha:

```
@recaptcha
```

Because some js frameworks (like Vue) don't allow to have script tags inside your components, this line is required as well:

```
// before the closing body tag
@recaptchaScript
```

After that, your request can be validated with the `recaptcha` validation rule:

```
$request->validate([
    'g-recaptcha-response' => ['recaptcha'],
])
```

Security
--------

[](#security)

If you find any security related issues, please open an issue or contact me directly at [justijndepover@gmail.com](justijndepover@gmail.com).

Contribution
------------

[](#contribution)

If you wish to make any changes or improvements to the package, feel free to make a pull request.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

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

Total

2

Last Release

1832d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/9008623?v=4)[Justijn Depover](/maintainers/justijndepover)[@justijndepover](https://github.com/justijndepover)

---

Top Contributors

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

---

Tags

hacktoberfestlaravelphprecaptcha

### Embed Badge

![Health badge](/badges/justijndepover-laravel-google-recaptcha-v2/health.svg)

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

###  Alternatives

[kartik-v/yii2-password

Useful password strength validation utilities for Yii Framework 2.0

761.3M17](/packages/kartik-v-yii2-password)[vitalybaev/laravel5-dkim

Laravel 5/6 package for signing outgoing messages with DKIM.

3163.1k](/packages/vitalybaev-laravel5-dkim)

PHPackages © 2026

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