alexpts/psr15-middlewares

Middlewares compatible with PSR-7 and PSR-15

1.16.1 2019-01-11 20:00 UTC

README

Build Status Code Coverage Code Climate Scrutinizer Code Quality

Collection of PSR-15 middlewares.

Middlewares compatible with PSR-7 and PSR-15

Installation

$ composer require alexpts/psr15-middlewares

ResponseTime

ResponseMemory

ResponseEmit

CORS (deprecated => see StaticHeader)

PoweredBy (deprecated => see StaticHeader)

isXHR

PhpInputToBody

Etag

StaticHeader

StaticHeaderDefault

JsonPayload (need tests)

RequestWithAttribute

StaticResponse

ThrowableHandler

HasRequestAttributeName (need tests)

CallbackAdapter (need tests)

LogError (need tests)

ErrorToJsonResponse (need tests)

NewRelic (need tests)