Releases: bpolaszek/uri-factory
Releases · bpolaszek/uri-factory
Release list
2.4
2.3.1
2.3
Add ringcentral/psr7
Merge pull request #2 from bpolaszek/ringcentral-support Add RingCentral/PSR7 factory
PSR-17 support
Interfaces have been slightly changed to adopt the new PSR-17 standard, therefore involving BC break.
If you did not implement your own BenTools\UriFactory\UriFactoryInterface, you can safely upgrade.
New Canonicalizer class
This library now ships with an URL canonicalizer.
The canonicalize() function accepts any PSR-7 UriInterface object and will return a canonicalized one.
use function BenTools\UriFactory\Helper\canonicalize;
use function BenTools\UriFactory\Helper\uri;
$url = 'http://example.org../foo/../bar/?#baz';
echo canonicalize(uri($url)); // http://example.org/bar/