PHPackages                             atendwa/laravel-honeypot - 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. atendwa/laravel-honeypot

ActiveLibrary[Security](/categories/security)

atendwa/laravel-honeypot
========================

This Laravel package safeguards your forms effortlessly with an invisible shield against spam, featuring seamless integration and configurable settings for optimal protection.

1.1.2(1y ago)033[1 PRs](https://github.com/atendwa/laravel-honeypot/pulls)MITPHPPHP ^8.2

Since May 3Pushed 1y ago1 watchersCompare

[ Source](https://github.com/atendwa/laravel-honeypot)[ Packagist](https://packagist.org/packages/atendwa/laravel-honeypot)[ Docs](https://github.com/atendwa/laravel-honeypot)[ GitHub Sponsors](https://github.com/Atendwa)[ RSS](/packages/atendwa-laravel-honeypot/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (14)Versions (6)Used By (0)

Beat Spam Bots with Laravel Honeypot
====================================

[](#beat-spam-bots-with-laravel-honeypot)

[![Latest Version on Packagist](https://camo.githubusercontent.com/b99aa256642a7f5e8111903134dd405f66c326e09e866bf37678c8668b1db8d7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6174656e6477612f6c61726176656c2d686f6e6579706f742e7376672f62616467652e737667)](https://packagist.org/packages/atendwa/laravel-honeypot)[![Software License](https://camo.githubusercontent.com/4e8a50d1c6c5db3722bd261bd18bed823860243f5f7b00ce63b4876a6d4847e9/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d62616467652d726f756e646564)](licence.md)

[![run-tests](https://github.com/spatie/laravel-varnish/actions/workflows/run-tests.yml/badge.svg)](https://github.com/spatie/laravel-varnish/actions/workflows/run-tests.yml)[![Quality Score](https://camo.githubusercontent.com/0281c4083ff8a8b1d09b35ca690a307326017ea4720dac37354c944f8222e3ce/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6174656e6477612f6c61726176656c2d686f6e6579706f742e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/atendwa/laravel-honeypot)[![Code Style Status](https://camo.githubusercontent.com/70cf1b44f5cca729034c51e1219057caee5c9e1c284e6411a3acbcc137c0b3ef/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6174656e6477612f6c61726176656c2d686f6e6579706f742f7068702d63732d66697865722e796d6c3f6c6162656c3d636f64652532307374796c65)](https://github.com/atendwa/laravel-honeypot/actions/workflows/php-cs-fixer.yml)

Laravel Honeypot is a package designed to help protect your Laravel applications from spam bots by adding a hidden form field that, when filled, indicates the submission is likely from a bot. It provides a simple and effective method to reduce spam submissions without inconveniencing genuine users.

### Installation

[](#installation)

You can install the package via composer:

```
composer require atendwa/laravel-honeypot
```

### Configuration

[](#configuration)

You can override the default options for the honeypot. First publish the `honeypot.php` configuration file:

```
  php artisan vendor:publish --provider="Atendwa\Honeypot\HoneypotServiceProvider" --tag="config"
```

Add the following variables in your **.env** file to use you custom configurations

```
HONEYPOT_ENABLED=TRUE

HONEYPOT_INPUT_NAME=mobile

HONEYPOT_TIME_INPUT_NAME=time_field

HONEYPOT_MINIMUM_SUBMISSION_DURATION=1 #time in seconds

```

### Usage

[](#usage)

1. Add the `prevent-spam` middleware to the routes you want to protect from spam bots.

    ```
    Route::post('/submit-comment', [commentController::class, 'store'])
        ->middleware('prevent-spam');
    ```
2. Add the `` blade component to the form body

    ```

        @csrf

        // other input fields

    ```

### Testing

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

Please see [CHANGELOG](changelog) for more information what has changed recently.

### Contributing

[](#contributing)

Please see [CONTRIBUTING](contributing) for details.

### Security

[](#security)

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

### Credits

[](#credits)

- [Anthony Tendwa Michael](https://github.com/atendwa)

### License

[](#license)

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

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

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

Total

4

Last Release

726d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8f3391990d67fe49d89c238c9defd734b6f07f863c7f12c7674e9cfcde409f98?d=identicon)[atendwa](/maintainers/atendwa)

---

Top Contributors

[![atendwa](https://avatars.githubusercontent.com/u/125092307?v=4)](https://github.com/atendwa "atendwa (10 commits)")

---

Tags

laravelHoneypotAtendwa

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/atendwa-laravel-honeypot/health.svg)

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

###  Alternatives

[spatie/laravel-ciphersweet

Use ciphersweet in your Laravel project

416718.4k1](/packages/spatie-laravel-ciphersweet)[msurguy/honeypot

Honeypot spam prevention

4381.2M12](/packages/msurguy-honeypot)[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)

PHPackages © 2026

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