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.
Requirements
- PHP 7.4 or higher.
Installation
The package could be installed with Composer:
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:
Documentation
- Internals
If you need help or have a question, the Yii Forum is a good place for that. You may also check out other Yii Community Resources.
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.
Support the project
Follow updates
All versions of request-body-parser with dependencies
ext-json Version *
psr/container Version ^1.0|^2.0
psr/http-message Version ^1.0|^2.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