nikolaposa/centerr

Robust and extensible error handling system for PHP

dev-master / 1.0.x-dev 2017-10-08 10:07 UTC

This package is auto-updated.

Last update: 2024-12-06 23:37:33 UTC


README

Build Status Code Quality Code Coverage Latest Version PDS Skeleton

CentErr has been inspired by the Central Error Handler concept that wraps the entire system to handle any uncaught application exception in a standardized and uniform way.

Once caught, exceptions or errors should be displayed to the user in a way that is appropriate for the mode in which application is used. For this purpose, CentErr offers different Emitter strategies for delivering error information in a format suitable for a port (web, CLI, API) application has been invoked through.

Before being shown to the user, errors typically require some pre-processing with a specific purpose. Therefore, CentErr features Processors that can be hooked into the error handling procedure, with concrete implementations for logging and suppressing errors.

Installation

The preferred method of installation is via Composer. Run the following command to install the latest version of a package and add it to your project's composer.json:

composer require nikolaposa/centerr

Usage

TBD

Credits

License

Released under MIT License - see the License File for details.