PHPackages                             cohensive/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. cohensive/recaptcha

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

cohensive/recaptcha
===================

Laravel 4 bridge for recaptcha/php5

4.0.0(12y ago)0138BSD-3-ClausePHPPHP &gt;=5.3.0

Since Nov 26Pushed 11y ago1 watchersCompare

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

READMEChangelogDependencies (1)Versions (4)Used By (0)

reCaptcha for Laravel 4
=======================

[](#recaptcha-for-laravel-4)

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

[](#installation)

Add following require to your `composer.json` file:

```
    "cohensive/recaptcha": "dev-master"

```

Then run `composer install` or `composer update` to download it and autoload.

In `providers` array you need to add new package:

```
'providers' => array(

    //...
    'Cohensive\Recaptcha\RecaptchaServiceProvider',
    //...

)

```

In aliases:

```
'aliases' => array(

    //...
    'Recaptcha' => 'Cohensive\Recaptcha\Facades\Recaptcha'
    //...

)

```

And after all that, we need to add config file, which will hold our private and public keys. Run following line in command line:

```
    php artisan config:publish cohensive/recaptcha

```

Your public and private key could be found in Google reCaptcha account page.

Usage
-----

[](#usage)

Insert Recaptcha javascript code into your page (check your Google reCaptcha account).

Then, all you need is to insert a new rule to your validator on your POST processing page:

```
  return [
    'recaptcha_response_field' => 'recaptcha'
  ];
```

`recaptcha` rule can be added to any input attribute, just make sure to translate it correcly in your language file.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity60

Established project with proven stability

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

Total

3

Last Release

4217d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/578455?v=4)[Kane Cohen](/maintainers/KaneCohen)[@KaneCohen](https://github.com/KaneCohen)

---

Tags

laravelrecaptchacaptcha

### Embed Badge

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

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

###  Alternatives

[isszz/rotate-captcha

Rotate image captcha

801.7k](/packages/isszz-rotate-captcha)[haruncpi/laravel-simple-captcha

A laravel simple captcha package

1128.3k](/packages/haruncpi-laravel-simple-captcha)

PHPackages © 2026

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