Download the PHP package yiisoft/request-body-parser without Composer
On this page you can find all versions of the php package yiisoft/request-body-parser. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download yiisoft/request-body-parser
More information about yiisoft/request-body-parser
Files in yiisoft/request-body-parser
Package request-body-parser
Short Description Middleware for parsing various data formats
License BSD-3-Clause
Homepage https://www.yiiframework.com/
Informations about the package request-body-parser
Yii Request Body Parser
The package is PSR-15 middleware that allows parsing PSR-7 server request body selecting the parser according to the server request mime type.
General usage
- Add
RequestBodyParser
to your middleware stack. - Obtain parsed body via
$request->getParsedBody();
.
By default, it parses application/json
requests where JSON is in the body.
You can add your own parser by implementing ParserInterface
, adding it into the container and registering it within
the middleware:
Unit testing
The package is tested with PHPUnit. To run tests:
Mutation testing
The package tests are checked with Infection mutation framework. To run it:
Static analysis
The code is statically analyzed with Psalm. To run static analysis:
Support the project
Follow updates
License
The Yii Request Body Parser is free software. It is released under the terms of the BSD License.
Please see LICENSE
for more information.
Maintained by Yii Software.
All versions of request-body-parser with dependencies
ext-json Version *
psr/container Version ^1.0|^2.0
psr/http-message Version ^1.0
psr/http-message-implementation Version 1.0
psr/http-server-handler Version ^1.0
psr/http-server-middleware Version ^1.0
yiisoft/http Version ^1.2