nofw/error

Common interface for error handlers

v0.1.1 2017-04-23 17:40 UTC

This package is auto-updated.

Last update: 2024-12-19 11:32:55 UTC


README

Latest Version Build Status Code Coverage Quality Score Total Downloads

Common interface for error handlers.

Why?

With the introduction of PSR-3 everyone's life became a whole lot easier: libraries could finally implement proper logging without relying on arbitrary implementations.

Logging however in case of applications is not always that simple. Error monitoring became quite common these days, and the current PSR-3 logger interface cannot always cover the needs of an error handler.

For example: an error monitor expects backtrace to be sent. With PSR-3 it's only possible, if you send it as part of the log message or send it in a context.

Futhermore, with PHP 7 we can finally catch errors as well, not just exceptions.

Install

Via Composer

$ composer require nofw/error

Testing

$ make test

Security

If you discover any security related issues, please contact us at mark.sagikazar@gmail.com.

License

The MIT License (MIT). Please see License File for more information.