This repository has been archived on 2020-11-09. You can view files and clone it, but cannot push or open issues/pull-requests.
Go to file
Anton Smirnov ff56e80c06 md -> adoc 2020-11-09 07:39:42 +02:00
docs/images Add dependency graphs 2020-11-09 07:21:42 +02:00
.gitignore Initial commit 2020-11-09 05:32:43 +02:00
LICENSE.md Initial commit 2020-11-09 05:32:43 +02:00
README.adoc md -> adoc 2020-11-09 07:39:42 +02:00
composer.json Update some meta 2020-11-09 05:49:05 +02:00

README.adoc

= Query String Proxy > *_The package is not recommended if you don't need PHP 7.1.x or PHP 8+ support, just use league packages directly_* > *_The package provides install time compatibility, not runtime compatibility. > It may be useful for other libraries, not for end projects_* A proxy class to use PHP League's QueryString class both in PHP 7.1 and PHP 8+. == Installation [source,bash] ---- composer require arokettu/query-string-proxy ---- == Usage Use `Arokettu\Uri\QueryStringProxy` in place of `League\Uri\Components\QueryString`. Refer to the original docs for more help: * https://uri.thephpleague.com/components/2.0/query-parser-builder/ * https://uri.thephpleague.com/query-parser/1.0/ == How it works In PHP 7.1 the package requires `league/uri-query-parser ^1` (requires PHP 7.1, does not support PHP8) and aliases `QueryStringProxy` to `League\Uri\Parser\QueryString`. In PHP 7.2+ the package requires `league/uri-components ^2` (requires PHP 7.2, supports PHP8) and aliases `QueryStringProxy` to `League\Uri\QueryString`. == Dependency graphs [cols=2] |=== | image:docs/images/php-7.1.svg[PHP 7.1] | image:docs/images/php-7.2.svg[PHP 7.2+] ^| PHP 7.1 ^| PHP 7.2+ |===