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

AbandonedArchivedLibrary[Security](/categories/security)

appel/honeypot
==============

A simple spam protection for Laravel.

v1.2.1(5y ago)21522[1 issues](https://github.com/avrahamappel/honeypot/issues)MITPHPPHP &gt;=7.2CI failing

Since Aug 23Pushed 5y ago2 watchersCompare

[ Source](https://github.com/avrahamappel/honeypot)[ Packagist](https://packagist.org/packages/appel/honeypot)[ RSS](/packages/appel-honeypot/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (4)Dependencies (5)Versions (8)Used By (0)

Honeypot: Spam Prevention
=========================

[](#honeypot-spam-prevention)

A simple spam prevention package for Laravel.

Installation:
=============

[](#installation)

### Composer

[](#composer)

Run this command inside your terminal to add the package into your project.

```
composer require appel/honeypot

```

### Publish Config File and Translations

[](#publish-config-file-and-translations)

Publish the package config file and translations to your application. Run this command inside your terminal.

```
php artisan vendor:publish --provider="Appel\Honeypot\Providers\HoneypotServiceProvider"

```

Or, you may want to publish the file individually.

```
php artisan vendor:publish --provider="Appel\Honeypot\Providers\HoneypotServiceProvider" --tag="config"
php artisan vendor:publish --provider="Appel\Honeypot\Providers\HoneypotServiceProvider" --tag="lang"

```

Usage
=====

[](#usage)

### Facade

[](#facade)

Add the honeypot hidden input into your form by inserting `Honeypot::make(...)` like this:

```

    {!! Honeypot::make('honeypot_name', 'honeypot_time') !!}

```

### Helper Function

[](#helper-function)

```

    {!! honeypot('honeypot_name', 'honeypot_time') !!}

```

### Blade Directive

[](#blade-directive)

```

    @honeypot('honeypot_name', 'honeypot_time')

```

**Note:** If you are using the Blade directive, you may need to run `php artisan view:clear` for it to work.

The `make()` method will output the following HTML input. (The `honeypot_time` field will generate an encrypted timestamp.

```

```

After adding the honeypot fields, add the validation rules in your controller for the honeypot and honeytime fields.

```
$this->validate($request, [
    ...
    'honeypot_name' => 'honeypot',
    'honeypot_time' => 'required|honeytime:5'
]);
```

Please note that in the honeytime rule, you need to specify the number of seconds it should take for the user to fill out the form. If it takes less time than that, the form will be rejected.

Settings
========

[](#settings)

The honeypots are hidden on the page by using `display: hidden`. You can alternatively have them moved off the page by publishing the config file and changing this setting:

```
return [
    ...
    /**
     * Hide the fields by setting the display property of the outer div to none,
     * or by moving it off-screen. Accepted values: 'hide', 'off-screen'
     */
    'hide_mode'     => 'off-screen'
];
```

Credits
=======

[](#credits)

This project is based on an earlier project by [Ian Landsman](https://github.com/ianlandsman/Honeypot). The following people contributed to this project: Maksim Surguy, Arjhay Delos Santos

This project is sponsored by [Bomshteyn Consulting](https://bomshteyn.com/).

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 54.5% 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 ~210 days

Recently: every ~314 days

Total

7

Last Release

1973d ago

PHP version history (2 changes)v1.0.0PHP &gt;=5.6.4

v1.2.0PHP &gt;=7.2

### Community

Maintainers

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

---

Top Contributors

[![avrahamappel](https://avatars.githubusercontent.com/u/33736292?v=4)](https://github.com/avrahamappel "avrahamappel (12 commits)")[![codewithmei](https://avatars.githubusercontent.com/u/128881536?v=4)](https://github.com/codewithmei "codewithmei (5 commits)")[![devarjhay](https://avatars.githubusercontent.com/u/12896698?v=4)](https://github.com/devarjhay "devarjhay (4 commits)")[![bomshteyn](https://avatars.githubusercontent.com/u/4259699?v=4)](https://github.com/bomshteyn "bomshteyn (1 commits)")

---

Tags

honeypotlaravelspam-preventionlaravelspamFormsHoneypothoneytimeappelbomshteyn

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[msurguy/honeypot

Honeypot spam prevention

4371.2M12](/packages/msurguy-honeypot)[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[propaganistas/laravel-disposable-email

Disposable email validator

6012.9M7](/packages/propaganistas-laravel-disposable-email)[api-platform/laravel

API Platform support for Laravel

59156.3k11](/packages/api-platform-laravel)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)[laragear/poke

Keep your forms alive, avoid TokenMismatchException by gently poking your Laravel app

2112.4k](/packages/laragear-poke)

PHPackages © 2026

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