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.
|
2 years ago | |
---|---|---|
docs/images | 2 years ago | |
.gitignore | 2 years ago | |
LICENSE.md | 2 years ago | |
README.adoc | 2 years ago | |
composer.json | 2 years 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+
|===
> *_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+
|===