PHPackages                             smkbd/recaptcha-checkbox - 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. smkbd/recaptcha-checkbox

ActiveLibrary[Security](/categories/security)

smkbd/recaptcha-checkbox
========================

Google reCAPTCHA v2 Checkbox

v1.0.0(2y ago)03MITPHP

Since Dec 12Pushed 2y ago1 watchersCompare

[ Source](https://github.com/smkbd/recaptcha-checkbox)[ Packagist](https://packagist.org/packages/smkbd/recaptcha-checkbox)[ RSS](/packages/smkbd-recaptcha-checkbox/feed)WikiDiscussions main Synced 1mo ago

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

Google reCAPTCHA v2 Checkbox
============================

[](#google-recaptcha-v2-checkbox)

This package allows you implement Google reCAPTCHA v2 Checkbox in any form without any hassle.

Version Support
---------------

[](#version-support)

Laravel VersionSupportLaravel 10✔️Laravel 9Not testedLaravel 8Not testedLaravel 7Not testedLaravel 6Not testedInstallation
------------

[](#installation)

```
composer require smkbd/recaptcha-checkbox

```

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

[](#configuration)

Add the following environment values in your `.env` file

```
RECAPTCHA_SITE_KEY=recaptcha_site_key_here
RECAPTCHA_SECRET_KEY=recaptcha_secret_key_here

```

You can obtain these keys from [Google reCAPTCHA Admin](https://www.google.com/recaptcha/admin)

Usage
-----

[](#usage)

To enable reCAPTCHA in a form, you need to make two changes, one in the `` and one in the controller method which accepts the form request.

### Form

[](#form)

Include the blade directive `@recaptcha` where you want the checkbox to appear.

### Controller

[](#controller)

In the controller, all you need is to use `\Smkbd\RecaptchaCheckbox\RecaptchaRequest $request`instead of `\Illuminate\Http\Client\Request $request` as the method argument.

For example, in `routes/web.php`

```
Route::post('/comments', [\App\Http\Controllers\CommentController::class, 'store'])->name('comments.store');

```

In `app/Http/Controllers/CommentController.php`

```
use Smkbd\RecaptchaCheckbox\RecaptchaRequest;

class CommentController extends Controller{
    ...

    public function store(RecaptchaRequest $request){

        // Your logic here

    }

    ...
}

```

You can appply your own validation inside the controller as you usually do. But `RecaptchaRequest` will first validate the request if it comes with a valid captcha fulfillment.

Translation
-----------

[](#translation)

To translate the messages for captcha, you need to publish the vendor files first.

```
php artisan vendor:publish --tag=recaptcha

```

This will publish the translation files in `resources/lang/vendor/recaptcha` directory.

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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

879d ago

### Community

Maintainers

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

---

Top Contributors

[![smkbd](https://avatars.githubusercontent.com/u/14842230?v=4)](https://github.com/smkbd "smkbd (1 commits)")

### Embed Badge

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

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

###  Alternatives

[soved/laravel-gdpr

GDPR compliance with ease

299127.5k2](/packages/soved-laravel-gdpr)[masterro/laravel-xss-filter

Filter user input for XSS but don't touch other html

41254.5k](/packages/masterro-laravel-xss-filter)[enlightn/laravel-security-checker

A Laravel package to scan your dependencies for known security vulnerabilities.

51173.4k](/packages/enlightn-laravel-security-checker)[nickurt/laravel-pwned-passwords

PwnedPasswords for Laravel 11.x/12.x/13.x

187.5k](/packages/nickurt-laravel-pwned-passwords)[dgtlss/owaspadvisor

A Laravel package to help developers implement OWASP Top 10 security guidelines

327.1k](/packages/dgtlss-owaspadvisor)

PHPackages © 2026

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