mnhcc/ml-bugcatcher

Minimalus Layoutilus — error handler, event system and exception classes

Maintainers

Package info

github.com/carschrotter/ml-bugcatcher

pkg:composer/mnhcc/ml-bugcatcher

Statistics

Installs: 2

Dependents: 1

Suggesters: 0

Stars: 0

Open Issues: 0

v0.9.0 2026-04-24 20:14 UTC

This package is auto-updated.

Last update: 2026-04-24 20:39:30 UTC


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

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']));

License

LGPL-2.1-only