PHPackages                             pherum/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. [Security](/categories/security)
4. /
5. pherum/laravel-recaptcha

ActiveLibrary[Security](/categories/security)

pherum/laravel-recaptcha
========================

google-recaptcha for Laravel 5

v1.2.0(5y ago)21.9kMITPHPCI failing

Since Aug 15Pushed 5y ago1 watchersCompare

[ Source](https://github.com/PheRum/laravel-recaptcha)[ Packagist](https://packagist.org/packages/pherum/laravel-recaptcha)[ Docs](https://github.com/pherum/laravel-recaptcha)[ RSS](/packages/pherum-laravel-recaptcha/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (5)Versions (6)Used By (0)

Laravel Recaptcha
=================

[](#laravel-recaptcha)

[![Latest Version on Packagist](https://camo.githubusercontent.com/48976a04d8196d495e061daf310ca29fec3dad5f53213cd404be184bb922b2b8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f50686552756d2f6c61726176656c2d7265636170746368612e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/PheRum/laravel-recaptcha)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/a388c8e49f0eddde91fde6da35cda723e297578a57043f6043ce309fb2bbd5db/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f50686552756d2f6c61726176656c2d7265636170746368612f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/PheRum/laravel-recaptcha)[![StyleCI](https://camo.githubusercontent.com/4eb7aba77d0976a30a5a064697625a96d80d97dbd9ec2e4206ec2bf1891f221d/68747470733a2f2f7374796c6563692e696f2f7265706f732f36353639303539372f736869656c64)](https://styleci.io/repos/65690597)[![Quality Score](https://camo.githubusercontent.com/d29274cd9d689d9bb920c821942ca6e13fe2645dcf6ba6fb43fc12af22db0976/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f50686552756d2f6c61726176656c2d7265636170746368612e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/PheRum/laravel-recaptcha)[![Total Downloads](https://camo.githubusercontent.com/d1fd7651ec5e02a9fd4d25fa4923ac7b167a2ef7d28b1244085fde7c31e2849e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f50686552756d2f6c61726176656c2d7265636170746368612e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/PheRum/laravel-recaptcha)

[![SensioLabsInsight](https://camo.githubusercontent.com/7318c9ea760cb0fd6ef92f027245b6a221873db2ab21902466c45cdab2ecbbfb/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f39656630383535342d653336622d343664342d393439642d3962376230393331633039652f6269672e706e67)](https://insight.sensiolabs.com/projects/9ef08554-e36b-46d4-949d-9b7b0931c09e)

Description
-----------

[](#description)

Laravel Recaptcha is a free CAPTCHA service that protect websites from spam and abuse.

Install
-------

[](#install)

Via Composer

```
composer require pherum/laravel-recaptcha
```

And then, if using Laravel 5, include the service provider within `app/config/app.php`.

```
'providers' => [
    ...
    PheRum\Recaptcha\RecaptchaServiceProvider::class,
];
```

And, for convenience, add a facade alias to this same file at the bottom:

```
'aliases' => [
    ...
    'Recaptcha' => PheRum\Recaptcha\Facades\Recaptcha::class,
];
```

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

[](#configuration)

Laravel Recaptcha supports optional configuration.

To get started, you'll need to publish all vendor assets:

```
php artisan vendor:publish --provider="PheRum\Recaptcha\RecaptchaServiceProvider"
```

This will create a `config/recaptcha.php` file in your app that you can modify to set your configuration. Also, make sure you check for changes to the original config file in this package between releases.

Usage
-----

[](#usage)

##### Validate a captcha in controller

[](#validate-a-captcha-in-controller)

```
$this->validate($request, [
    'g-recaptcha-response' => 'required|recaptcha',
]);
```

##### Render captcha

[](#render-captcha)

```
{!! Recaptcha::render() !!}
```

##### Render captcha with options

[](#render-captcha-with-options)

```
{!! Recaptcha::render(['lang' => 'en']) !!}
```

Testing
-------

[](#testing)

```
composer test
```

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity67

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

Total

5

Last Release

2115d ago

### Community

Maintainers

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

---

Top Contributors

[![pherum](https://avatars.githubusercontent.com/u/3333352?v=4)](https://github.com/pherum "pherum (14 commits)")

---

Tags

laravellaravel-recaptcharecaptchalaravelrecaptchacaptchalaravel5

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)

PHPackages © 2026

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