skm / whoops-extra
Useful handlers (Airbrake, PSR-3, etc) for the popular error handler filp/whoops
Requires
- php: ^7.0
- filp/whoops: ^2.0
Requires (Dev)
- airbrake/phpbrake: ^0.2.2
- phpunit/phpunit: ^6.0
- psr/log: ^1.0
Suggests
- airbrake/phpbrake: Allow sending errors to Airbrake
- psr/log: Allow logging errors
This package is auto-updated.
Last update: 2022-02-01 13:05:15 UTC
README
Part of the code moved to https://github.com/nofw/foundation
Whoops extra
Useful handlers (Airbrake, PSR-3, etc) for the popular error handler filp/whoops.
Install
Via Composer
$ composer require skm/whoops-extra
Usage
Airbrake handler
This handler awaits an Airbrake\Notifier
instance.
Please see the official documentation to learn about it's configuration.
PSR-3 Log handler
This handler logs the exception message (together with the trace). If it receives an \ErrorException
,
the log level is automatically guessed from the severity of the error, otherwise it is critical
.
Production handler
This handler is useful if you want to block the exception from reaching eg. the Pretty Page handler in production. Place it before the handlers you don't want Whoops to reach.
Testing
$ composer 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.