nikolaposa / centerr
Robust and extensible error handling system for PHP
Requires
- php: ^7.1
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.0
- phpunit/phpunit: ^5.7 || ^6.0
- psr/log: ^1.0
Suggests
- psr/log: ^1.0 to use log processor
This package is auto-updated.
Last update: 2024-12-06 23:37:33 UTC
README
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.