Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Honeypot Bundle

Honeypot Bundle Laravel Package

rattler/honeypot-bundle

A Symfony bundle that adds honeypot spam protection to forms without CAPTCHAs. Hidden fields and timing checks help flag bot submissions while keeping legitimate users friction-free. Lightweight, configurable, and easy to integrate into existing form workflows.

View on GitHub
Deep Wiki
Context7

A Symfony bundle that adds invisible honeypot fields to your forms, blocking spam bots without CAPTCHAs or user friction. Bots fill hidden fields that real users never see; Rattler then flags or rejects the submission automatically.

  • Drop-in form type extension — no template rewrites
  • Configurable honeypot field names and time-trap thresholds
  • Works with Symfony Forms and validation constraints
  • Silent rejection or custom spam handler hooks
  • Zero dependencies beyond Symfony, easy to test
Frequently asked questions about Honeypot Bundle
Can I use rattler/honeypot-bundle in a Laravel application?
No. It is a Symfony bundle that relies on Symfony's bundle registration, event dispatcher, and DI container conventions, none of which Laravel boots natively. Making it work would mean embedding Symfony kernel machinery, which costs far more than the 30–80 lines needed to implement the honeypot pattern in Laravel. Use a Laravel validation rule or a maintained package like spatie/laravel-honeypot instead.
How do I install rattler/honeypot-bundle?
You would install it with Composer and register the bundle in a Symfony AppKernel, following Symfony 2.x/3.x conventions. There is no Laravel service provider or installation path. Given the package was last released in 2016, installation on a modern Symfony or Laravel stack is not recommended.
Does rattler/honeypot-bundle support Laravel 10, 11, or 12?
No. The package is a Symfony bundle targeting Symfony 2.x/3.x and PHP 5.x/7.0 idioms, and it has had no releases since June 2016. Laravel 10, 11, and 12 are not supported in any way. You should treat it as incompatible and choose a native Laravel implementation or a maintained Laravel package.
What is a good Laravel alternative to rattler/honeypot-bundle?
spatie/laravel-honeypot is a maintained Laravel package that implements the same hidden-field and timestamp approach. Alternatively, build it yourself with a custom validation rule plus a signed timestamp check in a Blade component. Both options avoid the Symfony bundle and give you a security response path.
Is rattler/honeypot-bundle still maintained?
No. The last release was 2016-06-15, roughly eight-plus years ago, with no commits, releases, or security policy since. It has only 4 GitHub stars and 0 dependents, so there is no community validation or downstream testing. Treat it as a dead artifact rather than a dependency.
How does honeypot-based spam protection work?
A honeypot adds a hidden form field that humans do not see or fill, but bots often complete automatically. On submission, the server checks that the field is empty and that enough time has passed since the form was rendered. These two signals block most automated submissions without CAPTCHAs or user friction.
Is it safe to use an unmaintained package for form spam protection?
No. An unmaintained package handling untrusted form input has no security response path and may contain PHP 8 incompatibilities such as dynamic property deprecations or reserved-word conflicts. Most supply-chain policies reject such dependencies by default. Prefer a maintained library or a small in-house implementation you control.
What Laravel validation rule can replace a honeypot package?
You can use Laravel's prohibited rule on the honeypot field so any non-empty value fails validation. Pair it with a signed timestamp token and a custom rule that enforces a minimum elapsed time, such as two or three seconds. Wrap the field and token in a Blade component or @honeypot directive to keep forms DRY.
Does rattler/honeypot-bundle work with PHP 8?
Very unlikely. The 2016 codebase targets PHP 5.x and 7.0, and PHP 8 may surface fatal errors from untyped signatures, reserved words, or dynamic properties. There is no evidence of CI or compatibility testing. Assume a rewrite is required before it runs on PHP 8.
How do I test honeypot spam protection in Laravel?
Write feature tests that fill the hidden field and assert validation fails, and separately submit faster than the minimum timestamp threshold and assert rejection. Also test that a normal human submission passes and that accessibility attributes keep the field out of screen-reader and tab order. Include password-manager autofill cases to avoid false positives.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
jinas/dhivatar
store-doc/laravel-storage-driver
plus-it/laravel-translation-manager
diephp/perhaps
diephp/telegraph
osmaviation/spreadsheet
microsoft/fluentui-system-icons
mmccook/php-json-canonicalization-scheme
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console
pnscripts/filament-broadquill-lite
pnscripts/laravel-sentfold-lite
vleap/mx-sdk-laravel-internal
twidpay/utils
htetmyathlaing/scout-elasticsearch-driver
artisan-toolbox/front-awesome
ls/client-assistant
users-au/laravel-client
cgv/localized-resource