PHPackages                             notix/gcaptcha - 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. notix/gcaptcha

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

notix/gcaptcha
==============

NOTIX - Google ReCaptcha for laravel

v1.0.1(1y ago)020MITPHPPHP &gt;=5.4.0

Since Oct 6Pushed 1y agoCompare

[ Source](https://github.com/notix-pro/GCaptcha)[ Packagist](https://packagist.org/packages/notix/gcaptcha)[ RSS](/packages/notix-gcaptcha/feed)WikiDiscussions main Synced 1mo ago

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

GCaptcha
========

[](#gcaptcha)

[![Latest Stable Version](https://camo.githubusercontent.com/481778c531b8920faef5bd2ca91627daf73d1e1742f2bae118e65244db7c6727/687474703a2f2f706f7365722e707567782e6f72672f6e6f7469782f67636170746368612f76)](https://packagist.org/packages/notix/gcaptcha)[![Total Downloads](https://camo.githubusercontent.com/8f047f02f6e884b209dac64fdad6d0e2375717c7a86b7766e379dc3faac9d737/687474703a2f2f706f7365722e707567782e6f72672f6e6f7469782f67636170746368612f646f776e6c6f616473)](https://packagist.org/packages/notix/gcaptcha)[![Monthly Downloads](https://camo.githubusercontent.com/27e22735939217138597b2f0bfcb62acbea8d587d6b151df33cfd8ea47e6f24e/687474703a2f2f706f7365722e707567782e6f72672f6e6f7469782f67636170746368612f642f6d6f6e74686c79)](https://packagist.org/packages/notix/gcaptcha)[![License](https://camo.githubusercontent.com/a732d380b5a094b89651f44321101ee066f596334b5d11f17aff7159fcecb2c0/687474703a2f2f706f7365722e707567782e6f72672f6e6f7469782f67636170746368612f6c6963656e7365)](https://packagist.org/packages/notix/gcaptcha)

Instalation
-----------

[](#instalation)

```
composer require notix/gcaptcha
```

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

[](#configuration)

Add `CAPTCHA_SECRET`, `CAPTCHA_SITEKEY` optionally `CAPTCHA_THEME` (default light)

```
CAPTCHA_SECRET=
CAPTCHA_SITEKEY=
#Optionally default is light theme.
CAPTCHA_THEME=

```

You can take the private key as well as the public key from this [link](https://www.google.com/recaptcha/admin))

Publish Config
--------------

[](#publish-config)

```
php artisan vendor:publish --provider="Notix\GCaptcha\CaptchaServiceProvider"
```

Usage
-----

[](#usage)

### Render captcha in `'.blade.php'`

[](#render-captcha-in-bladephp)

```
{!! app('captcha')->display() !!}
```

### Validation

[](#validation)

Add `'g-recaptcha-response' => 'required|captcha'` to rules array.

Or make custom messages..
Add this value to the `'custom'` array in the `'validation'` language file.
(Your laravel project &gt; `'lang'` &gt; `'en'` (or other language folder) &gt; `'validation.php'`)

```
'custom' => [
    'g-recaptcha-response' => [
        'required' => 'Please confirm that you are not a robot.',
        'captcha' => 'There was a problem with captcha verification, please wait or contact the administrator.',
    ],
],
```

### Display

[](#display)

To display error messages you can use the standard option where all errors are displayed together. ([laravel docs](https://laravel.com/docs/9.x/validation#quick-displaying-the-validation-errors))

```
@if ($errors->any())

            @foreach ($errors->all() as $error)
                {{ $error }}
            @endforeach

@endif
```

Or if you want to show errors directly above or below the captcha

```
@if($errors->has('g-recaptcha-response'))

        {{ $errors->first('g-recaptcha-response') }}

@endif
```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance36

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity34

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

588d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7457a0e8711cc9094e3133d11d3fdc80ee8471a2b19c429b2d58acdaae00ce0e?d=identicon)[Notix](/maintainers/Notix)

---

Top Contributors

[![ourmine-notix](https://avatars.githubusercontent.com/u/46251965?v=4)](https://github.com/ourmine-notix "ourmine-notix (20 commits)")

---

Tags

googlegoogle-recaptchalaravellaravel-recaptcharecaptchalaravelgooglerecaptchaGoogle ReCaptchaLaravel reCAPTCHA

### Embed Badge

![Health badge](/badges/notix-gcaptcha/health.svg)

```
[![Health](https://phpackages.com/badges/notix-gcaptcha/health.svg)](https://phpackages.com/packages/notix-gcaptcha)
```

###  Alternatives

[timehunter/laravel-google-recaptcha-v3

Laravel Package for google reCAPTCHA v3

2861.0M1](/packages/timehunter-laravel-google-recaptcha-v3)[buzz/laravel-google-captcha

Google captcha for Laravel

2071.1M2](/packages/buzz-laravel-google-captcha)[josiasmontag/laravel-recaptchav3

Recaptcha V3 for Laravel package

2641.6M2](/packages/josiasmontag-laravel-recaptchav3)[arcanedev/no-captcha

No CAPTCHA (new Google reCAPTCHA) with Laravel support

370730.4k6](/packages/arcanedev-no-captcha)[timehunter/laravel-google-recaptcha-v2

Laravel Package for google reCAPTCHA v2

1395.4k](/packages/timehunter-laravel-google-recaptcha-v2)[rahul900day/laravel-captcha

Different types of Captcha implementation for Laravel Application.

10715.9k](/packages/rahul900day-laravel-captcha)

PHPackages © 2026

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