承接 yiisoft/request-body-parser 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

yiisoft/request-body-parser

最新稳定版本:1.2.1

Composer 安装命令:

composer require yiisoft/request-body-parser

包简介

Middleware for parsing various data formats

README 文档

README

Yii

Yii Request Body Parser


Latest Stable Version Total Downloads Build status Code coverage Mutation testing badge static analysis type-coverage

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 8.1 - 8.5.

Installation

The package could be installed with Composer:

composer require yiisoft/request-body-parser

General usage

  1. Add RequestBodyParser to your middleware stack.
  2. 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:

$requestBodyParser = $requestBodyParser->withParser('application/myformat', MyFormatParser::class);

Documentation

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

Open Collective

Follow updates

Official website Twitter Telegram Facebook Slack

统计信息

  • 总下载量: 71.01k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 18
  • 点击次数: 6
  • 依赖项目数: 5
  • 推荐数: 0

GitHub 信息

  • Stars: 18
  • Watchers: 13
  • Forks: 8
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 未知

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固