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

ActiveLibrary

kamilwojtalak/laravel-recaptcha-v3
==================================

Laravel reCaptcha v3 implementation.

7834↓50%PHP

Since Oct 24Pushed 1y ago1 watchersCompare

[ Source](https://github.com/KamilWojtalak/Laravel-Recaptcha-v3)[ Packagist](https://packagist.org/packages/kamilwojtalak/laravel-recaptcha-v3)[ RSS](/packages/kamilwojtalak-laravel-recaptcha-v3/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel reCaptcha v3
====================

[](#laravel-recaptcha-v3)

Intallation
-----------

[](#intallation)

```
composer require kamilwojtalak/laravel-recaptcha-v3:dev-master

```

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/site/446028211)

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!

How to use
----------

[](#how-to-use)

Add those environment variables to your .env file:

```
RECAPTCHA_SITE_KEY='xxxxxxxxxxxxxxxxx'
RECAPTCHA_SECRET_KEY='xxxxxxxxxxxxxxxxx'

```

Then publish config files:

```
php artisan vendor:publish --provider="Wojtalak\LaravelRecaptchaV3\Providers\LaravelRecaptchaV3ServiceProvider"

```

Ok, and now... When you want to use recaptcha in .blade.php where you have your form, you have to do following:

```
@push('head_scripts')
    @reCaptchaHead()
@endpush

@push('footer_scripts')
    @reCaptchaFooter('demo-form')
@endpush

```

Keep that in mind, you have to define your @stacks accordingly.

Then, when you define your form, you have to:

```

    ...  ...

        {{ __('Submit') }}

```

Notice that you have to provide ID for your form in two places, 1) @reCaptchaFooter('demo-form'), 2) id="demo-form"

Inside your validation request do:

```
use Wojtalak\LaravelRecaptchaV3\Rules;

...

public function rules(): array
{
    return [
        ...  ...
        'g-recaptcha-response' => ['required' , new Rules\Recaptcha]
    ];
}

```

Have a nice day! 😎

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance29

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity17

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/58526f30caba547d059b9814a9e9f58c9cb8eb7261ca13b24a9a503ae9d48e23?d=identicon)[by\_grux](/maintainers/by_grux)

---

Top Contributors

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

### Embed Badge

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

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

PHPackages © 2026

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