Skip to content

Releases: webignition/url

Implement UriInterface, Re-Implement Normalizer

10 Dec 16:59
298a05e

Choose a tag to compare

Overview

The 3.0 releases introduce significant changes and is in no way backwards-compatible
with 2.x:

  • PHP 7.2+ only
  • Url implements UriInterface
  • Remove NormalisedUrl, replace with Normalizer
  • Remove Query model

Upgrading from 2.x to 3.0

3.0 is by no means backwards-compatible with 2.x. Read the upgrade notes.

Percent-encode unreserved characters in URL path

09 Oct 17:17
d26f181

Choose a tag to compare

2.2

Percent-encode unreserved characters in URL path (#29)

Add Url::isPubliclyRoutable()

10 May 10:28
7c0bf4d

Choose a tag to compare

2.1

Add Url::isPubliclyRoutable() (#27)

Fix parsing of scheme-only urls

14 Mar 17:26
f700fe0

Choose a tag to compare

2.0.1

Fix parsing of scheme-only urls (#24)

Fix parsing of scheme-only urls (1.9)

14 Mar 17:26
a4e6044

Choose a tag to compare

1.9.20

Fix parsing of scheme-only urls (#25)

Remove functionality deprecated in the 1.9.x line

09 Mar 18:54
881d611

Choose a tag to compare

Remove Ur\/Query\Query::hasConfiguration()
Not needed

Remove Url\Query\Query::getParser()
Not needed

Remove Url\Query::add(), ::remove()

  • use Url\Query\Query::set($encodedKey, $encodedValue) instead
  • use Url\Query\Query::set($encodedKey, null) instead

Remove Url\Url::addFragment(), ::addPath(), ::addPort()

  • use setFragment(), setPath() and setPort() instead.

Deprecate Url/Query/Query::hasConfiguration()

09 Mar 17:53
67e6572

Choose a tag to compare

Deprecate Url/Query/Query::hasConfiguration(). Will be removed in 2.0.

Deprecate Url/Query::add(), ::remove()

09 Mar 16:58
c6eb08c

Choose a tag to compare

Deprecate Url/Query::add(), ::remove(). Will be removed in 2.0.

These methods don't make sense given that Url/Query::set() can perform the same function.

For Url/Query::add($encodedKey, $encodedValue), use Url/Query::set($encodedKey, $encodedValue) instead.

For Url/Query::remove($encodedKey), use Url/Query::set($encodedKey, null) instead.

Deprecate Url/Query::getParser()

09 Mar 16:33
f089407

Choose a tag to compare

Deprecate Url/Query::getParser().

There is no need to get the query parser, deprecated in this release, will be removed in 2.0.

Deprecate Url::addFragment(), Url::addPath() and Url::addPort()

09 Mar 15:59
a88127a

Choose a tag to compare

Deprecate Url::addFragment(), Url::addPath() and Url::addPort(). Will be removed in 2.0.

These three methods don't make sense given that Url::setFragment(), Url::setPath() and Url::setPort() exist.

Use Url::setFragment(), Url::setPath() and Url::setPort() instead.