PHPackages                             talent-loom/laravel-recaptcha-v3 - 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. talent-loom/laravel-recaptcha-v3

ActiveLibrary

talent-loom/laravel-recaptcha-v3
================================

PHP package for reCAPTCHA v3 in Laravel

v11.0.0(1y ago)119MITPHPPHP ^8.2

Since Aug 11Pushed 1y agoCompare

[ Source](https://github.com/talent-loom/laravel-recaptcha-v3)[ Packagist](https://packagist.org/packages/talent-loom/laravel-recaptcha-v3)[ RSS](/packages/talent-loom-laravel-recaptcha-v3/feed)WikiDiscussions beta Synced 1mo ago

READMEChangelog (3)Dependencies (4)Versions (7)Used By (0)

[![Logo](https://camo.githubusercontent.com/e3cfe4b9ca7517771ed26d4bcde0066ff0599fbee4a537d5173ba3e0c93400a9/68747470733a2f2f75706c6f61642e77696b696d656469612e6f72672f77696b6970656469612f636f6d6d6f6e732f612f61642f5265636170746368614c6f676f2e737667)](https://camo.githubusercontent.com/e3cfe4b9ca7517771ed26d4bcde0066ff0599fbee4a537d5173ba3e0c93400a9/68747470733a2f2f75706c6f61642e77696b696d656469612e6f72672f77696b6970656469612f636f6d6d6f6e732f612f61642f5265636170746368614c6f676f2e737667)

**Laravel ReCAPTCHA V3** is a very simply-to-use Laravel 9.x | 10.x | 11.x package to embed Google reCAPTCHA in your application.

What is reCAPTCHA?
------------------

[](#what-is-recaptcha)

Google offers reCAPTCHA v3 and reCAPTCHA Enterprise to help you protect your sites from fraudulent activities, spam, and abuse. To know more about the features of reCAPTCHA and reCAPTCHA Enterprise, [see Comparison of features between reCAPTCHA versions](https://cloud.google.com/recaptcha-enterprise/docs/compare-versions).

You can find further info at [Google reCAPTCHA Developer's Guide](https://developers.google.com/recaptcha/intro)

reCAPTCHA available versions
----------------------------

[](#recaptcha-available-versions)

At this moment there are 3 versions available (for web applications):

- **v3**, the latest ([reCAPTCHA v3](https://developers.google.com/recaptcha/docs/v3))
- **v2 checkbox** or simply reCAPTCHA v2 ([reCAPTCHA v2](https://developers.google.com/recaptcha/docs/display))
- **v2 invisible** ([Invisible reCAPTCHA](https://developers.google.com/recaptcha/docs/invisible))

Get your key first!
-------------------

[](#get-your-key-first)

First of all you have to create your own API keys [here](https://www.google.com/recaptcha/admin)

Follow the instructions and at the end of the process you will find **Site key** and **Secret key**. Keep them close..you will need soon!

System requirements
-------------------

[](#system-requirements)

Package versionreCaptcha versionPHP versionLaravel versionv9.0.0v38.0.2 or greater9.xv10.0.0v38.1 or greater10.xv11.0.0v38.2 or greater11.xComposer
--------

[](#composer)

You can install the package via composer:

```
$ composer require talent-loom/laravel-recaptcha-v3
```

Configuration for LARAVEL 9.x | 10.x
------------------------------------

[](#configuration-for-laravel-9x--10x)

Laravel 9.x or 10.x registered providers in `config/app.php`:

```
'providers' => [
    ...
    TalentLoom\RecaptchaV3\RecaptchaV3ServiceProvider::class,
];
```

You can use the facade for shorter code. Add `ReCaptchaV3` to your aliases:

```
'aliases' => [
    ...
    'ReCaptchaV3' => TalentLoom\RecaptchaV3\Facades\RecaptchaV3::class,
];
```

Configuration for LARAVEL 11.x
------------------------------

[](#configuration-for-laravel-11x)

Laravel 11.x registered providers in `bootstrap/providers.php`:

```
    return [
        App\Providers\AppServiceProvider::class,
        TalentLoom\RecaptchaV3\RecaptchaV3ServiceProvider::class,
    ];
```

You can use the facade for shorter code. Add `ReCaptchaV3` to your aliases in `config/app.php`:

```
return [
    ....
    'aliases' => Facade::defaultAliases()->merge([
        'ReCaptchaV3' => TalentLoom\RecaptchaV3\Facades\RecaptchaV3::class,
    ])->toArray(),
];
```

Publish package
---------------

[](#publish-package)

Create `config/recaptchaV3.php` configuration file using the following artisan command:

```
$ php artisan vendor:publish --provider="TalentLoom\RecaptchaV3\RecaptchaV3ServiceProvider"
```

Environment Variables
---------------------

[](#environment-variables)

To run this project, you will need to add the following environment variables to your .env file

`RECAPTCHA_V3_SITE_KEY`

`RECAPTCHA_V3_SECRET_KEY`

### Reload config cache file

[](#reload-config-cache-file)

> **!!! IMPORTANT !!!** Every time you change some configuration run the following shell command:

```
$ php artisan config:cache
```

Implementation
--------------

[](#implementation)

### Add validation in request

[](#add-validation-in-request)

```
use TalentLoom\RecaptchaV3\Rules\RecaptchaV3Rule;

[
    ...
    'recaptcha_v3' => new RecaptchaV3Rule(),
];
```

### Embed in Blade

[](#embed-in-blade)

Insert `js()` script before closing `` tag.

You can also use `ReCaptchaV3::js()`.

```

        ...
        {!! ReCaptchaV3::js() !!}

```

Now you can use `ReCaptchaV3::execute('action', 'form id')`.

like:

```

        @csrf
        ....

```

```
        {!! ReCaptchaV3::execute('login-action', 'loginForm') !!}

```

Running Tests
-------------

[](#running-tests)

To run tests, run the following command

```
  ./vendor/bin/pest
```

Authors
-------

[](#authors)

- [@shazeedul](https://www.github.com/shazeedul)
- [shazeedul.dev](https://shazeedul.dev)

Support
-------

[](#support)

For support, email syedshazeedul@gmail.

License
-------

[](#license)

[MIT](https://choosealicense.com/licenses/mit/)

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity56

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

Total

6

Last Release

641d ago

Major Versions

v9.0.0 → 10.x-dev2024-08-11

v10.0.0 → 11.x-dev2024-08-11

PHP version history (3 changes)9.x-devPHP ^8.0.2

10.x-devPHP ^8.1

11.x-devPHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/3d2f51d3ba3cce230f251c84f95276cc0e22e0f147bcdef35cf15f9f1e3f66dc?d=identicon)[shazeedul](/maintainers/shazeedul)

---

Top Contributors

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

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/talent-loom-laravel-recaptcha-v3/health.svg)

```
[![Health](https://phpackages.com/badges/talent-loom-laravel-recaptcha-v3/health.svg)](https://phpackages.com/packages/talent-loom-laravel-recaptcha-v3)
```

###  Alternatives

[fumeapp/modeltyper

Generate TypeScript interfaces from Laravel Models

196277.9k](/packages/fumeapp-modeltyper)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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