PackageTrack
Sign in Get early access

sabre/uri

Functions for making sense out of URIs.

3.1.0 39M downloads/mo #677 most downloaded on Packagist sabre-io/uri

What this package is like to depend on

Last release 3 months ago

26 Apr 2026

Release timing varies

gaps range from 8 days to 1.6 years

Nearly every release is documented

notes for 28 of 28 stable releases

Nothing withdrawn

no release was ever pulled

12 years old

28 releases · first in 2014

2 releases in the last 12 months

see the full history below

Release timeline

28 releases · Nov 2014 to Apr 2026
2015 2017 2019 2021 2023 2025
Release Pre-release

Releases

latest 28
  1. 3.1.0 26 Apr 2026
    Release notes

    3.1.0 (2026-04-26)

    This release supports PHP 8.2 and up. That is specified in composer.json so consumers should automatically select it only for projects that have minimum PHP 8.2 support.

    The 3.0.* release series, supporting PHP 7.4 8.0 8.1, will have bugfixes backported if relevant/needed for some time.

    Open source →
    Release notes
    • #139 add rector check (@ChristophWurst @phil-davis)
    • #140 drop PHP 7.4 8.0 8.1 and support PHP 8.2 and up (@DerDreschner @ChristophWurst @phil-davis)
    Open source →
  2. 3.0.3 01 Apr 2026
    Release notes

    3.0.3 (2026-04-01)

    This release is confirmed to work with PHP 7.4 through 8.5.

    Open source →
    Release notes
    • #124 phpstan major version 2 (@phil-davis)
    • #127 add PHP 8.5 to CI workflows (@phil-davis)
    • #133 refactor: add and apply rector (@ChristophWurst)
    Open source →
  3. 3.0.2 04 Sep 2024
    Release notes

    3.0.2 (2024-09-04)

    Open source →
    Release notes
    • #98: Update readme and test (@phil-davis)
    • #100: Update CI and test things (@phil-davis)
    • #101: Create dependabot.yml (@DeepDiver1975)
    • #102: Bump actions/checkout from 3 to 4 (@DeepDiver1975)
    • #103: Change array<int...> to list<...> in PHP doc (@phil-davis)
    • #104: Add PHP 8.3 to CI (@phil-davis)
    • #105: add convertDeprecationsToExceptions option to unit test settings (@phil-davis)
    • and other CI and analysis/test tool changes
    Open source →
  4. 3.0.1 09 Jun 2023
    Release notes

    3.0.1 (2023-06-09)

    Open source →
    Release notes
    • #89: Call static assert functions with self:: (tests only) (@phil-davis)
    • #90: Implement phpstan strict rules and fix edge cases for paths that have "0" (@phil-davis)
    • #91: Use newer GitHub workflow action versions (CI only) (@phil-davis)
    • #93: Minor cs-fixer change (@phil-davis)
    Open source →
  5. 3.0.0 26 Sep 2022
    Release notes

    3.0.0 (2022-09-26)

    This changes the behavior of parsing of some Windows file paths. See the discussions in PR #82 #71 #25 and issue #31 #81

    Open source →
    Release notes
    • #82: Add empty host and leading slash to Windows file paths (@peterpostmann @phil-davis)
    Open source →
  6. 2.3.4 27 Aug 2024
    Release notes

    2.3.4 (2024-08-27)

    Most of this is CI tooling to support PHP 8.3 and 8.4, which demonstrates that the tests pass with those latest PHP versions.
    There are some code format changes applied by php-cs-fixer. They do not effect behavior.

    Open source →
    Release notes
    • #111: apply cs-fixer 3.54.0 changes to v2 branch (@phil-davis)
    • #115: Add PHP 8.3 to CI for v2 branch (@phil-davis)
    • #116: Add PHP 8.4 to CI for v2 branch (@phil-davis)
    • #117: check for nullable_type_declaration (@phil-davis)
    Open source →
  7. 2.3.3 09 Jun 2023
    Release notes

    2.3.3 (2023-06-09)

    Note: This is a patch release for the "old" major version 2 series. There will also be a 3.0.1 release coming with the same patches for the current major version 3.

    Open source →
    Release notes
    • #89: Call static assert functions with self:: (tests only) (@phil-davis)
    • #90: Implement phpstan strict rules and fix edge cases for paths that have "0" (@phil-davis)
    • #91: Use newer GitHub workflow action versions (CI only) (@phil-davis)
    • #93: Minor cs-fixer change (@phil-davis)
    Open source →
  8. 2.3.2 19 Sep 2022
    Release notes

    2.3.2 (2022-09-19)

    • #83: Revert windows file paths change (was PR 71). See issue 81 (@phil-davis)

    See the discussion in issue #81 and PR #83 and links from there.
    This patch release reverts to the previous behavior for Windows file paths like file:///C:/path/file.ext

    The newer behavior will be released in a major version release, so that consumers can adjust to the change, if needed, in a more controlled manner.

    Open source →
    Release notes
    • #83: Revert Windows file paths change (was PR 71). See issue 81 (@phil-davis)
    Open source →
  9. 2.3.1 30 Aug 2022
    Release notes

    2.3.1 (2022-08-30)

    Open source →
    Release notes
    • #77: Add PHP 8.2 to CI - confirms that the code is working with PHP 8.2 (@phil-davis)
    • #78: Raise phpstan to level 8 (@phil-davis)
    • #79: Specify detailed return type of parse() (@phil-davis)
    Open source →
  10. 2.3.0 17 Aug 2022
    Release notes
    • #74: Minimum PHP 7.4 - drops PHP 7.1 7.2 and 7.3 and adds more type declarations (@phil-davis)
    Open source →
  11. 2.2.4 19 Sep 2022
    Release notes

    2.2.4 (2022-09-19)

    • #83: Revert windows file paths change (was PR 71). See issue 81 (@phil-davis)

    See the discussion in issue #81 and PR #83 and links from there.
    This patch release reverts to the previous behavior for Windows file paths like file:///C:/path/file.ext

    The Windows file paths change was released in 2.2.3. So this 2.2.4 release allows anyone on 2.2.3 to bump just the patch version to 2.2.4 to get back the old behavior. This will be relevant to consumers who are still using PHP 7.1 7.2 or 7.3, and are thus on 2.2.. The 2.2. series is the last release series for those PHP versions.

    The newer behavior will be released in a major version release, so that consumers can adjust to the change, if needed, in a more controlled manner. That release will also require a minimum of PHP 7.4

    Open source →
    Release notes
    • #83: Revert Windows file paths change (was PR 71). See issue 81 (@phil-davis)
    Open source →
  12. 2.2.3 17 Aug 2022
    Release notes
    • #71: Add empty host and trailing slash to Windows file paths (@peterpostmann @phil-davis)
    • #70: Update .gitattributes (@cedric-anne)
    Open source →
  13. 2.2.2 04 Nov 2021
    Release notes
    • #69: fix issue with missing slash in URI parse (@41i-6h0rb4n1 @phil-davis)
    Open source →
  14. 2.2.1 03 Oct 2020
    Release notes
    • #57: Added Support for PHP 8.0 (@phil-davis)
    • #51 #52 #53 #54: Update CI and unit test scripts (@phil-davis)
    Open source →
  15. 2.2.0 31 Jan 2020
    Release notes
    • #45: Added Support for PHP 7.4 (@phil-davis, @staabm)
    • #47: Dropped Support for PHP 7.0 (@phil-davis)
    • #49: Updated the testsuite for phpunit8 (@phil-davis)
    • #46: Added phpstan coverage (@phil-davis)
    Open source →
  16. 2.1.3 09 Sep 2019
    Release notes
    • #43: allows the path to be 0
    Open source →
  17. 2.1.2 25 Jun 2019
    Release notes
    • #39: Some PHPDoc improvements.
    • PHPStan support.
    • Adopted the symfony php-cs-fixer standard.
    • Now testing against PHP 7.2 and 7.3.
    Open source →
  18. 2.1.1 20 Feb 2017
    Release notes
    • #15: Don't throw an error when resolving a URI which path component is empty.
    • #16: Correctly parse urls that are only a fragment #.
    Open source →
  19. 2.1.0 07 Dec 2016
    Release notes
    • Now throwing InvalidUriException if a uri passed to the parse function is invalid or could not be parsed.
    • #11: Fix support for URIs that start with a triple slash. PHP's parse_uri() doesn't support them, so we now have a pure-php fallback in case it fails.
    • #9: Fix support for relative URI's that have a non-uri encoded colon : in them.
    Open source →
  20. 2.0.1 27 Oct 2016
    Release notes
    • #10: Correctly support file:// URIs in the build() method. (@yuloh)
    Open source →
  21. 2.0.0 07 Oct 2016
    Release notes
    • Requires PHP 7.
    • Added type-hints where relevant.
    Open source →
  22. 1.2.1 20 Feb 2017
    Release notes
    • #16: Correctly parse urls that are only a fragment #.
    Open source →
  23. 1.2.0 07 Dec 2016
    Release notes
    • Now throwing InvalidUriException if a uri passed to the parse function is invalid or could not be parsed.
    • #11: Fix support for URIs that start with a triple slash. PHP's parse_uri() doesn't support them, so we now have a pure-php fallback in case it fails.
    • #9: Fix support for relative URI's that have a non-uri encoded colon : in them.
    Open source →
  24. 1.1.1 27 Oct 2016
    Release notes
    • #10: Correctly support file:// URIs in the build() method. (@yuloh)
    Open source →
  25. 1.1.0 08 Mar 2016
    Release notes
    • #6: PHP's parse_url() corrupts strings if they contain certain non ascii-characters such as Chinese or Hebrew. sabre/uri's parse() function now percent-encodes these characters beforehand.
    Open source →
  26. 1.0.1 29 Apr 2015
    Release notes
    • #4: Using php-cs-fixer to automatically enforce coding standards.
    • #5: Resolving to and building mailto: urls were not correctly handled.
    Open source →
  27. 1.0.0 27 Jan 2015
    Release notes
    • Added a normalize function.
    • Added a buildUri function.
    • Fixed a bug in the resolve when only a new fragment is specified.

    San José, CalConnect XXXII release!

    Open source →
  28. 0.0.1 18 Nov 2014
    Release notes
    • First version!
    • Source was lifted from sabre/http package.
    • Provides a resolve and a split function.
    • Requires PHP 5.4.8 and up.
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive