-
Notifications
You must be signed in to change notification settings - Fork 1
Home
vendeeglobe edited this page Jul 8, 2026
·
2 revisions
Bad Behaviour prevents spammers from ever delivering their junk, and in many cases, from ever reading your site in the first place.
Welcome to the official wiki for Bad Behaviour 2.3.0+.
Version 2.3.0 represents a major architectural overhaul. The core logic has been decoupled from platform-specific global variables and bootstrap scripts, transformed into a modern, self-contained Composer package utilizing Dependency Injection.
-
Composer Ready: Install via
composer require badbehaviour/badbehaviour. - OOP Architecture: Fully object-oriented with PSR-4 autoloading.
-
Dependency Injection: All host-specific behavior (DB queries, escaping, settings) is now handled via the
BadBehaviour\Core\HostAdapterInterface. -
No Side Effects: Requiring the library no longer triggers screening or calls
die(). You retain full control over execution flow. -
Backward Compatible: Legacy drop-in scripts (
bad-behaviour-generic.php, etc.) have been retained as transparent shims over the new OOP core.