Skip to content

Releases: codeinchq/url

2.0.1

15 Apr 19:57
2.0.1
ad13fab

Choose a tag to compare

Changes

  • ad13fab Add PHP version and total downloads badges to README

2.0.0

15 Apr 19:55
2.0.0
f04618e

Choose a tag to compare

Breaking changes

  • Requires PHP ^8.2 (was >=7.1)
  • Requires psr/http-message ^2.0 (was ^1.0)
  • withQuery() now accepts string only (PSR-7 strict); use new withQueryParams(iterable) for merging key/value pairs
  • PSR-7 string getters (getScheme(), getHost(), getPath(), etc.) return '' instead of null when unset
  • getPort() returns null for standard ports (80/http, 443/https) per PSR-7
  • Host is normalized to lowercase per PSR-7
  • Query/fragment encoding uses rawurlencode() (RFC 3986 %20) instead of urlencode() (+)
  • Schemeless authority (//host/) when no scheme is set, instead of defaulting to http://

Changes

  • 1c5992a Modernize library for PHP 8.2+ and PSR-7 2.0 (#11)
  • 5bae69d Address Copilot review: RFC3986 encoding, PSR-7 compliance fixes (#11)

Highlights

  • Typed properties, static return types, and full PSR-7 2.0 UriInterface compliance
  • New withQueryParams(iterable) method for merging query parameters
  • Expanded test suite: 61 tests / 121 assertions (was 3 tests)
  • GitHub Actions CI on PHP 8.2, 8.3, 8.4
  • Dependabot enabled for automated dependency updates
  • Branch protection on master

1.5.4

05 Dec 11:22
50a0bfa

Choose a tag to compare

  • New methods UrlInterface::getFullUrl() and UrlInterface::getRelUrl()
  • New tests for UrlInterface::getFullUrl() and UrlInterface::getRelUrl()
  • See #10 for change log

1.5.3

05 Dec 11:16
87190ff

Choose a tag to compare

  • UrlInterface::withoutQuery() now accepts a parameters list
  • See #9 for change log

1.5.2

05 Dec 11:06
0679f62

Choose a tag to compare

  • Bug fixes
  • Improved unit tests
  • New methods Url::getUser() and Url::getPassword()
  • See #8 for change log

1.5.1

05 Dec 09:46
b491bf0

Choose a tag to compare

  • Code simplification (because simpler is always better)
  • See #7 for change log

1.5.0

05 Dec 09:28
49341c2

Choose a tag to compare

  • Huge code improvement
  • Might not be fully compatible with v1.4
  • See #6 for full change log

1.4.0

13 Mar 19:14
59bead7

Choose a tag to compare

New package name codeinc/url

1.3.5

08 Mar 17:15

Choose a tag to compare

New package name codeinc/lib-url

1.3.4

06 Mar 00:33

Choose a tag to compare

Bug fix (case issue with the file Url.php named URL.php)