You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Anton Smirnov ff56e80c06 md -> adoc 10 months ago
docs/images Add dependency graphs 10 months ago
.gitignore Initial commit 10 months ago
LICENSE.md Initial commit 10 months ago
README.adoc md -> adoc 10 months ago
composer.json Update some meta 10 months ago

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+
|===