dev-master
9999999-devWhoops Middleware
BSD-2-Clause
The Requires
by Veaceslav Medvedev
middleware whoops psr-15
0.1.1
0.1.1.0Whoops Middleware
BSD-2-Clause
The Requires
by Veaceslav Medvedev
middleware whoops psr-15
Whoops Middleware
This package contains a middleware that catches all exceptions and redirects those to the Whoops error handling library., (*1)
Via Composer, (*2)
composer require phpsdk/middleware-whoops
Just use the ClientMiddleware
or ServerMiddleware
class in your middleware stack:, (*3)
use PhpSDK\Http\Middleware\Whoops\ServerMiddleWare as WhoopsServerMiddleWare; use Whoops; $whoops = new Whoops\Run(); $whoops->pushHandler(new PrettyPageHandler()); $middleware = new WhoopsServerMiddleWare($whoops, new Response('Default error', 500)); $stack = $stack->withMiddleware($middleware);
If an exception is thrown, or an error is raised, Whoops will display a nice error message:, (*4)
, (*5)
# install required files composer self-update composer install # run the test (from project root) phpunit
The BSD 2-Clause License. Please see [LICENSE][link-license] for more information., (*6)
Whoops Middleware
BSD-2-Clause
middleware whoops psr-15
Whoops Middleware
BSD-2-Clause
middleware whoops psr-15