someniatko/json-decode-middleware

Simple PSR-15 middleware for decoding JSON body of a server request when given respective Content-Type header

0.1.1 2021-01-22 10:53 UTC

This package is auto-updated.

Last update: 2024-04-22 18:03:18 UTC


README

Simple PSR-15 middleware, which decodes JSON body of a PSR-7 Server Request, if it has a Content-Type: application/json header, into array, which you can obtain via getParsedBody() call on the Server Request.