PHP error handler framework with a readable debug error page
open sourceMITfree
Whoops is an error handler framework for PHP. Out of the box it shows a detailed error page for debugging web projects, with the stack trace and its frames, and links that open the referenced files in your editor or IDE. Underneath it's a stack of handlers, so the same error can be logged, returned as JSON, XML or SOAP, or passed to your own code. It has no required dependencies beyond psr/log, and Laravel and Mezzio ship with it; community packages integrate it with Slim, CakePHP, Yii, Laminas and PSR-7 or StackPHP middleware.
Problems it solves
- see a readable stack trace when my PHP app throws an exception
- return PHP errors as JSON from an API during development
- open the file and line of a PHP error straight in my editor
Features
- Detailed error page with the stack trace and its frames
- Stack-based handlers for exceptions and errors
- Opens referenced files in your editor or IDE
- Handlers for JSON, XML and SOAP responses
- Bundled with Laravel and Mezzio
Alternatives
The same job
These do what Whoops does.
