alexpts/psr15-middlewares

Middlewares compatible with PSR-7 and PSR-15

2.1.0 2022-05-28 20:02 UTC

README

phpunit codecov

Collection of PSR-15 middlewares.

Middlewares compatible with PSR-7 and PSR-15

Installation

$ composer require alexpts/psr15-middlewares

ResponseTime

ResponseMemory

CORS ( => see StaticHeader)

PoweredBy ( => 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)