2017 © Pedro Peláez
 

library whoops-middleware

PSR-15 compatible middleware for Whoops, the pretty error handler

image

franzl/whoops-middleware

PSR-15 compatible middleware for Whoops, the pretty error handler

  • Saturday, June 2, 2018
  • by franzliedke
  • Repository
  • 1 Watchers
  • 16 Stars
  • 85,653 Installations
  • PHP
  • 12 Dependents
  • 1 Suggesters
  • 6 Forks
  • 1 Open issues
  • 9 Versions
  • 13 % Grown

The README.md

PSR-15 middleware for Whoops

A PSR-15 compatible middleware for Whoops, the fantastic pretty error handler for PHP., (*1)

Installation

You can install the library using Composer:, (*2)

composer require franzl/whoops-middleware

Usage

Assuming you are using a PSR-15 compatible middleware dispatcher (such as zend-stratigility, Relay, or broker), all you need to do is add the middleware class to your pipeline / broker / dispatcher ..., (*3)

This might look as follows:, (*4)

Stratigility

$pipe->pipe(new \Franzl\Middleware\Whoops\WhoopsMiddleware)

Relay

$queue = [];
// ...
$queue[] = new \Franzl\Middleware\Whoops\WhoopsMiddleware;
$relay = new Relay($queue);

broker

$broker->always(\Franzl\Middleware\Whoops\WhoopsMiddleware::class)

The Versions

02/06 2018

dev-master

9999999-dev

PSR-15 compatible middleware for Whoops, the pretty error handler

  Sources   Download

MIT

The Requires

 

The Development Requires

27/04 2016
18/04 2016
31/10 2015
14/10 2015