PHPackages                             ibehbudov/laravel-google-captcha - 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. ibehbudov/laravel-google-captcha

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

ibehbudov/laravel-google-captcha
================================

Google Captcha rule for Laravel validation

034PHP

Since Aug 24Pushed 3y ago1 watchersCompare

[ Source](https://github.com/ibehbudov/laravel-google-captcha)[ Packagist](https://packagist.org/packages/ibehbudov/laravel-google-captcha)[ RSS](/packages/ibehbudov-laravel-google-captcha/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

\##Google Captcha for Laravel

### Installation

[](#installation)

```
composer require ibehbudov/laravel-google-captcha
```

### Publish vendor files

[](#publish-vendor-files)

```
php artisan vendor:publish --tag=google-captcha
```

### Secret key

[](#secret-key)

Open `config/google-captcha.php` file and edit

```
return [
    'secret_key'   =>  'google_secret_key'
];
```

### Usage

[](#usage)

#### Inside controller

[](#inside-controller)

```
$request->validate([
    'g-recaptcha-response'  =>  new GoogleCaptchaRule()
]);
```

#### Inside rule

[](#inside-rule)

```
public function rules()
{
    return [
        'g-recaptcha-response'  =>  new GoogleCaptchaRule()
    ];
}
```

#### In somewhere as you want

[](#in-somewhere-as-you-want)

```
$googleCaptcha = app(GoogleCaptcha::class);

$googleCaptcha->validate($request->post('g-recaptcha-response'));

if($googleCaptcha->fail()) {
    return $googleCaptcha->getErrorMessage();
}
else {
    // code goes here
}
```

###  Health Score

16

—

LowBetter than 4% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity25

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://avatars.githubusercontent.com/u/16236563?v=4)[Ibrahim](/maintainers/ibehbudov)[@ibehbudov](https://github.com/ibehbudov)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/ibehbudov-laravel-google-captcha/health.svg)

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

###  Alternatives

[marcosh/php-validation-dsl

A DSL for validating data in a functional fashion

483.9k](/packages/marcosh-php-validation-dsl)

PHPackages © 2026

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