All Projects → franzliedke → whoops-middleware

franzliedke / whoops-middleware

Licence: MIT License
PSR-15 compatible middleware for Whoops, the pretty error handler

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to whoops-middleware

think-trace
Error trace for ThinkJS 3.x
Stars: ✭ 12 (-50%)
Mutual labels:  middleware
redux-global-loader
A Redux middleware for global loader
Stars: ✭ 13 (-45.83%)
Mutual labels:  middleware
xenon
A middleware abstraction library that provides a simple programming interface to various compute and storage resources.
Stars: ✭ 28 (+16.67%)
Mutual labels:  middleware
DevOps
DevOps code to deploy eScience services
Stars: ✭ 19 (-20.83%)
Mutual labels:  middleware
middleland
Simple PSR-15 middleware dispatcher
Stars: ✭ 31 (+29.17%)
Mutual labels:  middleware
oryx
.NET Cross platform and highly composable middleware for building web request handlers in F#
Stars: ✭ 178 (+641.67%)
Mutual labels:  middleware
http-authentication
PSR-15 middleware to implement Basic and Digest Http authentication
Stars: ✭ 29 (+20.83%)
Mutual labels:  middleware
horse-logger
Middleware for access logging in HORSE
Stars: ✭ 25 (+4.17%)
Mutual labels:  middleware
throttle
Throttling Middleware for Martini
Stars: ✭ 63 (+162.5%)
Mutual labels:  middleware
horse-jwt
Middleware for JWT in HORSE
Stars: ✭ 39 (+62.5%)
Mutual labels:  middleware
redux-tools
Redux tools to speed up development.
Stars: ✭ 16 (-33.33%)
Mutual labels:  middleware
polix
🚀 Node.js Web Framework
Stars: ✭ 32 (+33.33%)
Mutual labels:  middleware
NiFi4Trading
NiFi Bundle for FIX Protocol
Stars: ✭ 14 (-41.67%)
Mutual labels:  middleware
react-redux-api-tools
A set of tools to facilitate react-redux development and decouple logic from compontents
Stars: ✭ 37 (+54.17%)
Mutual labels:  middleware
DotNETCarRental
Daily car rental simulation with ASP.NET.
Stars: ✭ 13 (-45.83%)
Mutual labels:  middleware
restana
Super fast and minimalist framework for building REST micro-services.
Stars: ✭ 380 (+1483.33%)
Mutual labels:  middleware
AkamaiOPEN-edgegrid-php-client
PHP client library for Akamai {OPEN} EdgeGrid Authentication scheme (based on Guzzle)
Stars: ✭ 38 (+58.33%)
Mutual labels:  middleware
AspNetCore.Weixin
An ASP.NET Core middleware for Wechat/Weixin message handling and apis. (微信公众平台/接口调用服务)
Stars: ✭ 24 (+0%)
Mutual labels:  middleware
spiderable-middleware
🤖 Prerendering for JavaScript powered websites. Great solution for PWAs (Progressive Web Apps), SPAs (Single Page Applications), and other websites based on top of front-end JavaScript frameworks
Stars: ✭ 29 (+20.83%)
Mutual labels:  middleware
connect-browser-sync
Connect middleware for BrowserSync
Stars: ✭ 16 (-33.33%)
Mutual labels:  middleware

PSR-15 middleware for Whoops

A PSR-15 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

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 ...

This might look as follows:

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)
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].