Download the PHP package phrity/net-uri without Composer
On this page you can find all versions of the php package phrity/net-uri. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download phrity/net-uri
More information about phrity/net-uri
Files in phrity/net-uri
Package net-uri
Short Description PSR-7 Uri and PSR-17 UriFactory implementation
License MIT
Homepage https://phrity.sirn.se/net-uri
Informations about the package net-uri
Introduction
Implementation of the PSR-7 UriInterface and PSR-17 UriFactoryInterface interfaces.
Nothing fancy. Just working. Because I need a URI implementation not hardwired to HTTP messaging. And some extras. Allow all valid schemes.
Installation
Install with Composer;
Uri class methods
Implemts PSR-7 UriInterface and provides some extra metods and options. More info here.
UriFactory class methods
Implemts PSR-17 UriFactoryInterface and provides some extra metods and options. More info here.
Modifiers
Out of the box, it will behave as specified by PSR standards.
To change behaviour, there are some modifiers available.
These can be added as last argument in all get
and with
methods, plus the toString
method.
REQUIRE_PORT
- Attempt to show port, even if defaultABSOLUTE_PATH
- Will cause path to use absolute form, i.e. starting with/
NORMALIZE_PATH
- Will attempt to normalize pathIDN_ENCODE
/IDN_DECODE
- Encode or decode IDN-format for non-ASCII hostURI_DECODE
/URI_ENCODE
/URI_ENCODE_3986
- Encode or decode URI components
Examples
Versions
Version | PHP | |
---|---|---|
2.1 |
^8.0 |
URI encode/decode options |
2.0 |
^8.0 |
Query helpers, with([]) and getComponents() methods, IDN encode/decode |
1.3 |
^7.4\|^8.0 |
|
1.2 |
^7.4\|^8.0 |
IDNA modifier |
1.1 |
^7.4\|^8.0 |
Require port, Absolute path, Normalize path modifiers |
1.0 |
^7.4\|^8.0 |
Initial version |
All versions of net-uri with dependencies
ext-mbstring Version *
psr/http-factory Version ^1.0
psr/http-message Version ^1.1 | ^2.0