Download the PHP package mouf/whoops-stackphp without Composer
On this page you can find all versions of the php package mouf/whoops-stackphp. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mouf/whoops-stackphp
More information about mouf/whoops-stackphp
Files in mouf/whoops-stackphp
Package whoops-stackphp
Short Description This package provides a StackPHP middleware for using the Whoops error handling library
License MIT
Homepage https://github.com/thecodingmachine/whoops-library
Informations about the package whoops-stackphp
Whoops middleware for StackPHP
This package contains a StackPHP middleware that catches all exceptions and redirects those to the Whoops error handling library.
Installation
Through Composer as mouf/whoops-stackphp.
Usage
Simply use the WhoopsMiddleWare
class in your middleware stack:
If an exception is thrown, or an error is raised, Whoops will display a nice error message:
The WhoopsMiddleWare
constructor accepts 3 parameters:
- $router: this is the next router to be called on the Stack
- $catchExceptions: Set to true to catch exception. Set to false to ignore exceptions (for production servers)
- $catchErrors: Set to true to catch raised errors. Set to false to ignore raised errors (for production servers)
Note: $catchExceptions
and $catchErrors
can be passed a boolean, a callable (that returns a boolean) or a ConditionInterface that evaluates to true or false.
All versions of whoops-stackphp with dependencies
symfony/http-kernel Version ~2.0
mouf/utils.common.conditioninterface Version ~2.0
filp/whoops Version ~1.0