PHPackages                             erictt/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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. erictt/recaptcha

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

erictt/recaptcha
================

ReCaptcha For Laravel. This repo seperated script and dom which is very helpful for lazyload.

0.0.5(8y ago)052MITPHPPHP &gt;=5.5.5

Since May 16Pushed 8y agoCompare

[ Source](https://github.com/erictt/recaptcha)[ Packagist](https://packagist.org/packages/erictt/recaptcha)[ RSS](/packages/erictt-recaptcha/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (2)Versions (3)Used By (0)

reCAPTCHA
=========

[](#recaptcha)

- Forked from [anhskohbo/no-captcha](https://github.com/anhskohbo/no-captcha)
- This repo's purpose is to seperate script and dom which is very useful in vuejs.
- Still working on it.

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

[](#installation)

Add the following line to the `require` section of `composer.json`:

```
{
    "require": {
        "erictt/recaptcha": "*"
    }
}
```

### Setup

[](#setup)

1. Add ServiceProvider to the providers array in `app/config/app.php`.

```
Erictt\Recaptcha\RecaptchaServiceProvider::class,

```

and the following to `aliases`:

```
'Recaptcha' => Erictt\Recaptcha\Facades\Recaptcha::class,

```

2. Run `php artisan vendor:publish --provider="Erictt\Recaptcha\RecaptchaServiceProvider"`.
3. In `/config/recaptcha.php`, enter your reCAPTCHA sitekey and secret keys.

### Usage

[](#usage)

##### Display reCAPTCHA

[](#display-recaptcha)

```
{!! Recaptcha->display(['dom', 'script']); !!}
```

- or seperately

```
{!! Recaptcha->display(['dom']); !!}
{!! Recaptcha->display(['script']); !!}
```

- Complete HTML codes:

```

        {!! Recaptcha::display(['dom']) !!}
        @if ($errors->has('g-recaptcha-response'))

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

        @endif

```

##### Validation

[](#validation)

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

PS: I don't think we need `require` rule for this.

```
$validate = Validator::make(Input::all(), [
	'g-recaptcha-response' => 'recaptcha'
]);
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75.8% 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 ~2 days

Total

2

Last Release

3278d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f8dd8c82b3eafd9b10585d3b15680b8b1181160d58410f035d595aa8075fa757?d=identicon)[erictt](/maintainers/erictt)

---

Top Contributors

[![anhskohbo](https://avatars.githubusercontent.com/u/1529454?v=4)](https://github.com/anhskohbo "anhskohbo (50 commits)")[![dann95](https://avatars.githubusercontent.com/u/9970959?v=4)](https://github.com/dann95 "dann95 (3 commits)")[![akiyamaSM](https://avatars.githubusercontent.com/u/12276076?v=4)](https://github.com/akiyamaSM "akiyamaSM (1 commits)")[![GregorVoelkl](https://avatars.githubusercontent.com/u/8426676?v=4)](https://github.com/GregorVoelkl "GregorVoelkl (1 commits)")[![it-can](https://avatars.githubusercontent.com/u/644288?v=4)](https://github.com/it-can "it-can (1 commits)")[![juukie](https://avatars.githubusercontent.com/u/2678657?v=4)](https://github.com/juukie "juukie (1 commits)")[![kcincode](https://avatars.githubusercontent.com/u/174254?v=4)](https://github.com/kcincode "kcincode (1 commits)")[![martin-heralecky](https://avatars.githubusercontent.com/u/10909241?v=4)](https://github.com/martin-heralecky "martin-heralecky (1 commits)")[![perkola](https://avatars.githubusercontent.com/u/4265109?v=4)](https://github.com/perkola "perkola (1 commits)")[![seltix5](https://avatars.githubusercontent.com/u/11258096?v=4)](https://github.com/seltix5 "seltix5 (1 commits)")[![slovenianGooner](https://avatars.githubusercontent.com/u/1257629?v=4)](https://github.com/slovenianGooner "slovenianGooner (1 commits)")[![splatEric](https://avatars.githubusercontent.com/u/2445288?v=4)](https://github.com/splatEric "splatEric (1 commits)")[![abhimanyu003](https://avatars.githubusercontent.com/u/265913?v=4)](https://github.com/abhimanyu003 "abhimanyu003 (1 commits)")[![Stichoza](https://avatars.githubusercontent.com/u/1139050?v=4)](https://github.com/Stichoza "Stichoza (1 commits)")[![absemetov](https://avatars.githubusercontent.com/u/735924?v=4)](https://github.com/absemetov "absemetov (1 commits)")

---

Tags

laravelrecaptchalaravel5Vue.js

### Embed Badge

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

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

###  Alternatives

[anhskohbo/no-captcha

No CAPTCHA reCAPTCHA For Laravel.

1.8k8.5M33](/packages/anhskohbo-no-captcha)[albertcht/invisible-recaptcha

Invisible reCAPTCHA For Laravel.

6031.6M6](/packages/albertcht-invisible-recaptcha)[josiasmontag/laravel-recaptchav3

Recaptcha V3 for Laravel package

2641.6M2](/packages/josiasmontag-laravel-recaptchav3)

PHPackages © 2026

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