Skip to content

Fooriva/whoops-middleware

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PSR-7 middleware for Whoops

A PSR-7 compatible middleware for Whoops, the fantastic pretty error handler for PHP.

Installation

You can install the library using Composer:

composer require franzl/whoops-middleware

Usage

Zend Stratigility

If you're using Zend's Stratigility middleware pipe, you need to use the special error middleware to be able to handle exceptions:

$app->pipe(new \Franzl\Middleware\Whoops\ErrorMiddleware);

(You should probably do this at the end of your middleware stack, so that errors cannot be handled elsewhere.)

Relay and others

Add the standard middleware to the queue:

$queue[] = new \Franzl\Middleware\Whoops\Middleware;

About

PSR-7 compatible middleware for Whoops

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%