Download the PHP package memran/marwa-error-handler without Composer
On this page you can find all versions of the php package memran/marwa-error-handler. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download memran/marwa-error-handler
More information about memran/marwa-error-handler
Files in memran/marwa-error-handler
Download memran/marwa-error-handler
More information about memran/marwa-error-handler
Files in memran/marwa-error-handler
Vendor memran
Package marwa-error-handler
Short Description PHP Errorhandler with optional PSR-3 logger, optional Debugbar, and a professional fallback UI.
License MIT
Package marwa-error-handler
Short Description PHP Errorhandler with optional PSR-3 logger, optional Debugbar, and a professional fallback UI.
License MIT
Please rate this library. Is it a good library?
Informations about the package marwa-error-handler
memran/marwa-error-handler
A tiny, framework-agnostic PHP Error Handler with:
- Optional PSR-3 Logger injection (logs if provided; no-op if not)
- Optional Debugbar injection (adds exception to bar in dev)
- Professional fallback UI when neither logger nor debugbar exists
- Clean dev vs prod behavior
Install
Example
Behavior
-
Development
- If a Debugbar is present: exception is added to the bar and rethrown so your dev page (Whoops/Symfony) renders.
- If no logger & no debugbar: a polished dev exception page is rendered with trimmed trace.
- If a logger is present: php_error, uncaught_exception, and fatal_shutdown entries are written.
- Production
- If a logger is present: errors/exceptions/fatals are logged; the response returns HTTP 500 without details.
- If no logger & no debugbar: a clean generic error page is rendered with only Request ID & timestamp.
Optional DI
Testing
All versions of marwa-error-handler with dependencies
PHP Build Version
Package Version
The package memran/marwa-error-handler contains the following files
Loading the files please wait ....