PHPackages                             vinkas/laravel-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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. vinkas/laravel-recaptcha

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

vinkas/laravel-recaptcha
========================

Google reCAPTCHA Validator Package for Laravel Framework

v1.0.1(9y ago)1472MITPHP

Since Jul 11Pushed 1y ago1 watchersCompare

[ Source](https://github.com/vinkashq/laravel-recaptcha)[ Packagist](https://packagist.org/packages/vinkas/laravel-recaptcha)[ RSS](/packages/vinkas-laravel-recaptcha/feed)WikiDiscussions main Synced today

READMEChangelog (2)Dependencies (2)Versions (4)Used By (0)

Laravel Recaptcha Validator
===========================

[](#laravel-recaptcha-validator)

[![Latest Stable Version](https://camo.githubusercontent.com/763095e2c9ff929bd420b7ff34a12046878f54a4ed9da0e7db6709bd97299a01/68747470733a2f2f706f7365722e707567782e6f72672f76696e6b61732f6c61726176656c2d7265636170746368612f762f737461626c652e737667)](https://packagist.org/packages/vinkas/laravel-recaptcha)[![Latest Unstable Version](https://camo.githubusercontent.com/e967b3ba25e95b9164eaef0edb1c5b854304126562850c4b27e102ca64bf3627/68747470733a2f2f706f7365722e707567782e6f72672f76696e6b61732f6c61726176656c2d7265636170746368612f762f756e737461626c652e737667)](https://packagist.org/packages/vinkas/laravel-recaptcha)[![License](https://camo.githubusercontent.com/7c92e9510cbad2296f2fda186d34632c803a535944c1a1cbf6f74cad60dfa449/68747470733a2f2f706f7365722e707567782e6f72672f76696e6b61732f6c61726176656c2d7265636170746368612f6c6963656e73652e737667)](https://packagist.org/packages/vinkas/laravel-recaptcha)

#### Google reCAPTCHA Validator Package for Laravel Framework

[](#google-recaptcha-validator-package-for-laravel-framework)

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

[](#installation)

#### Via Composer Require

[](#via-composer-require)

You may install by running the `composer require` command in your terminal:

```
composer require vinkas/laravel-recaptcha

```

Configuration
-------------

[](#configuration)

**Add Service Provider to your `config/app.php` file**

```
Vinkas\Laravel\Recaptcha\ServiceProvider::class,

```

And run `php artisan` command to publish package config file

```
php artisan vendor:publish --provider="Vinkas\Laravel\Recaptcha\ServiceProvider"

```

**Add your recaptcha site key and secret in `.env` file**

```
RECAPTCHA_SITE_KEY=__________
RECAPTCHA_SECRET=__________

```

**Add recaptcha custom error message in `resources\lang\en\validation.php` file**

```
'recaptcha'            => 'The capcha verfication failed. Please try again.',

```

**Add recaptcha field in your form's blade view**

```

@if ($errors->has('g-recaptcha-response'))
  {{ $errors->first('g-recaptcha-response') }}
@endif

```

**Add `Validator` calling function in your app controller file**

```
Validator::make($data, [
  'g-recaptcha-response' => 'required|recaptcha',
]);

```

**It's done! Now your form spam protected by Google reCAPTCHA!!!**

Dependencies
------------

[](#dependencies)

[Google Recaptcha](https://github.com/google/recaptcha)

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance29

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity65

Established project with proven stability

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

Total

3

Last Release

3610d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/75502944bc293e8aa5b6629e8ac575f710c37e7c7b30663538416c520c01487b?d=identicon)[vinothkannans](/maintainers/vinothkannans)

---

Top Contributors

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

### Embed Badge

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

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

###  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)
