open-api-tools / query-parser
Query string parser with open-api format support
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/open-api-tools/query-parser
Requires
- php: >=7.2
Requires (Dev)
- phpunit/phpunit: ^8.5 || ^9.5
- squizlabs/php_codesniffer: ^3.6
This package is not auto-updated.
Last update: 2025-10-06 03:01:22 UTC
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', ], ];