https://github.com/kdubuc/query-string-parser-psr15
PSR 15 to parse query (manage duplicate fields ...)
https://github.com/kdubuc/query-string-parser-psr15
psr-15 query-string
Last synced: 6 months ago
JSON representation
PSR 15 to parse query (manage duplicate fields ...)
- Host: GitHub
- URL: https://github.com/kdubuc/query-string-parser-psr15
- Owner: kdubuc
- License: other
- Created: 2019-12-12T13:34:42.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-03-22T17:37:31.000Z (over 1 year ago)
- Last Synced: 2025-06-02T05:57:42.422Z (7 months ago)
- Topics: psr-15, query-string
- Language: PHP
- Homepage:
- Size: 15.6 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# Query String Parser
If multiple fields of the same name exist in a query string, every other web processing language would read them into an array, but PHP silently overwrites them ([source](https://www.php.net/manual/en/function.parse-str.php#76792)). PSR-15 Middleware parse query string and keep duplicates in PSR7 URI Query.
## Install
Via Composer
``` bash
$ composer require kdubuc/query-string-parser
```
## Testing
``` bash
$ vendor/bin/phpunit tests/
```
## Contributing
Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.
## Security
If you discover any security related issues, please email kevindubuc62@gmail.com instead of using the issue tracker.
## Credits
- [Kévin DUBUC](https://github.com/kdubuc)
- [All Contributors](https://github.com/kdubuc/query-string-parser/graphs/contributors)
## License
The CeCILL-B License. Please see [License File](LICENSE.md) for more information.