open-api-tools/query-parser
Composer 安装命令:
composer require open-api-tools/query-parser
包简介
Query string parser with open-api format support
README 文档
README
the standard PHP function parse_str() function replaces the same parameter names
in the query string. To get an array, you need to add [] to the parameter name,
which is not in accordance with the
Open-API specification.
This library solves the indicated problem.
$parser = new \OpenApiTools\QueryParser\OpenApiQueryParser(); $parser->parse('id=1&id=2&id=3'); // returns [ 'id' => [ '1', '2', '3', ], ];
统计信息
- 总下载量: 4
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-07-31