mnhcc / ml-bugcatcher
Minimalus Layoutilus — error handler, event system and exception classes
v0.9.0
2026-04-24 20:14 UTC
Requires
- php: >=5.4
- firephp/firephp-core: ~0.3
- kint-php/kint: ^4.0
- mnhcc/ml-core: ^0.9
Requires (Dev)
- phpunit/phpunit: ^5.7
README
Error handling, event system and exception classes for the Minimalus Layoutilus PHP framework.
Provides Error (error/exception handler with BugCatcher debug console), EventManager,
EventParms, and a hierarchy of typed Exception classes.
Requirements
- PHP ≥ 5.4
- mnhcc/ml-core
Installation
composer require mnhcc/ml-bugcatcher
Usage
Error is instantiated by the framework bootstrap. It registers set_error_handler,
set_exception_handler and register_shutdown_function, and optionally starts output
buffering for blank-screen protection.
// register and raise a 404 Error::getInstance()->raise(404, 'Not found');
// fire a custom event EventManager::raise('myEvent', new EventParms(['key' => 'value']));