PHPackages                             hirenkeraliya/lara-captcha - 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. hirenkeraliya/lara-captcha

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

hirenkeraliya/lara-captcha
==========================

Laravel custom recaptcha.

2.1(3y ago)2534MITPHPPHP ^8.1

Since Mar 4Pushed 3y ago2 watchersCompare

[ Source](https://github.com/hirenkeraliya/lara-captcha)[ Packagist](https://packagist.org/packages/hirenkeraliya/lara-captcha)[ RSS](/packages/hirenkeraliya-lara-captcha/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (3)Dependencies (1)Versions (4)Used By (0)

lara-captcha
============

[](#lara-captcha)

Laravel Captcha (Laravel 9.x)
=============================

[](#laravel-captcha-laravel-9x)

Lara-Captcha is a reliable and easy-to-use package for preventing bot submissions and enhancing the security of public forms in Laravel. With its simple integration and multiple customization options, it's a great choice for developers looking to improve the safety of their forms.

Requirements
------------

[](#requirements)

PHPLaravelPackage8.1+9.xv1.0.0Features
--------

[](#features)

- Easy integration with Laravel forms
- Supports multiple configurations for customization
- Provides effective protection against bot submissions
- Minimal code changes required for implementation
- Regular updates and bug fixes from the author
- Lightweight package for efficient performance

Usage
-----

[](#usage)

Here's an example of how to use Lara-Captcha in your Laravel form:

```

    @csrf
    @captcha

    Submit

```

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

[](#installation)

Follow these steps to install the package:

1. Run the following command in your terminal/cmd:

```
composer require hirenkeraliya/lara-captcha
```

2. Import the configuration file by running this command in your terminal/cmd:

```
php artisan vendor:publish --tag=lara-captcha-config
```

3. Add `@captcha` in your form after the CSRF token.
4. To use the middleware, add the following line to your route:

```
use Hirenkeraliya\LaraCaptcha\app\Http\Middleware\VerifyCaptcha;

Route::post('contact-us', [ContactUsController::class, 'index'])->name('front.contact_us')->middleware(VerifyCaptcha::class);
```

or You can apply it to multiple routes by utilizing route grouping.

```
use Hirenkeraliya\LaraCaptcha\app\Http\Middleware\VerifyCaptcha;

Route::group(['middleware' => VerifyCaptcha::class], function () {
  Route::post('contact-us', [ContactUsController::class, 'index'])->name('front.contact_us');
});

Route::middleware([VerifyCaptcha::class])->group(function () {
  Route::post('contact-us', [ContactUsController::class, 'index'])->name('front.contact_us');
});
```

That's it! Your form is now secured against bot submissions.

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

[](#configuration)

Lara-Captcha provides multiple configuration options that you can modify to fit your needs. The default configuration can be found in the `config/lara-captcha.php` file after running the vendor:publish command.

You can modify the following configuration options:

- `enabled`: The validation can be enabled or disabled.
- `input_name`: The name of the input field in your form.
- `error.message`: The error message to display when a bot submission is detected.
- `error.status_code`: The error status code to display when a bot submission is detected.

Authors
-------

[](#authors)

- [**Hiren Keraliya**](https://github.com/hirenkeraliya) - *Initial work*

Support
-------

[](#support)

If you encounter any issues with Lara-Captcha or have suggestions for improvement, feel free to open an issue on the [GitHub repository](https://github.com/hirenkeraliya/lara-captcha/issues).

Contributing
------------

[](#contributing)

Contributions to Lara-Captcha are always welcome! To contribute, simply fork the repository, make your changes, and submit a pull request.

License
-------

[](#license)

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details

Special Thanks to
-----------------

[](#special-thanks-to)

Special thanks to the [Laravel](https://laravel.com) community for their support

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity56

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

Every ~5 days

Total

3

Last Release

1201d ago

Major Versions

1.0 → 2.02023-03-06

### Community

Maintainers

![](https://www.gravatar.com/avatar/343f3729086c5052e766c22cf36a560c16287641898653dc58796e80b9af4961?d=identicon)[hirenpatelh2](/maintainers/hirenpatelh2)

---

Top Contributors

[![hirenkeraliya](https://avatars.githubusercontent.com/u/22992703?v=4)](https://github.com/hirenkeraliya "hirenkeraliya (13 commits)")

---

Tags

captchalaravelmiddleware

### Embed Badge

![Health badge](/badges/hirenkeraliya-lara-captcha/health.svg)

```
[![Health](https://phpackages.com/badges/hirenkeraliya-lara-captcha/health.svg)](https://phpackages.com/packages/hirenkeraliya-lara-captcha)
```

###  Alternatives

[directorytree/ldaprecord-laravel

LDAP Authentication &amp; Management for Laravel.

5742.2M17](/packages/directorytree-ldaprecord-laravel)[illuminate/auth

The Illuminate Auth package.

9327.9M1.2k](/packages/illuminate-auth)[hasinhayder/tyro

Tyro - The ultimate Authentication, Authorization, and Role &amp; Privilege Management solution for Laravel 12 &amp; 13

6753.6k5](/packages/hasinhayder-tyro)[masterix21/laravel-licensing

Laravel licensing package with polymorphic assignment to any model, activation keys, expirations/renewals, and seat control via LicenseUsage. Supports offline verification with public-key–signed tokens, a CLI to generate/rotate/revoke keys, and an extensible architecture via config and contracts.

1542.1k4](/packages/masterix21-laravel-licensing)

PHPackages © 2026

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