mchev/banhammer
Laravel package for banning users, IP addresses, and other entities with a polymorphic ban model, middleware, events, and helper methods. Supports temporary or permanent bans, reasons, and easy integration into existing applications.
Adopt when:
Bannable trait and you're comfortable with the package's config-driven approach.Look elsewhere when:
For executives: Banhammer gives us a proven, low-cost trust-and-safety primitive — blocking abusive users, IPs, emails, and countries with automated bans on repeated failed logins. Adopting it avoids building and maintaining this logic ourselves, and its active release cadence (now supporting Laravel 13.x and PHP 8.5) reduces upgrade risk. Net: faster delivery of abuse controls at minimal ongoing cost.
For engineering: Drop-in Laravel integration via a Bannable model trait plus middleware; cache-backed lookups keep request overhead low, and auto-ban-on-failed-login is configurable. The v2.5.0 release is a pure compatibility/maintenance update (Laravel 13.x support, PHP 8.5 tests) with no breaking changes — safe to adopt and a good sign the package is actively maintained.
How can I help you explore Laravel packages today?