Skip to content

Releases: bpolaszek/uri-factory

2.3

21 Jun 14:19
6b8c258
Compare
Choose a tag to compare

What's Changed

  • chore: remove Zend Diactoros by @misaert in #3
  • chore: update required PHP version to 8.0 and other packages by @misaert in #4

New Contributors

Full Changelog: 2.2...2.3

Add ringcentral/psr7

31 May 07:36
a6fa791
Compare
Choose a tag to compare
Merge pull request #2 from bpolaszek/ringcentral-support

Add RingCentral/PSR7 factory

PSR-17 support

31 Aug 15:30
Compare
Choose a tag to compare

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

07 Dec 14:37
Compare
Choose a tag to compare

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/