sabre/uri
Lightweight, RFC3986-compliant PHP URI utility library. Resolve relative URLs, normalize for comparisons, parse/build (like parse_url with Windows path edge cases), and split URIs into dirname/basename. Fully unit tested and inspired by Node’s URL APIs.
This release is confirmed to work with PHP 7.4 through 8.5.
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.
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.
This changes the behavior of parsing of some Windows file paths. See the discussions in PR #82 #71 #25 and issue #31 #81
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
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.
#.#.InvalidUriException if a uri passed to the parse function
is invalid or could not be parsed.parse_uri()
doesn't support them, so we now have a pure-php fallback in case it fails.: in
them.InvalidUriException if a uri passed to the parse function
is invalid or could not be parsed.parse_uri()
doesn't support them, so we now have a pure-php fallback in case it fails.: in
them.file:// URIs in the build() method. (@yuloh)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.mailto: urls were not correctly handled.normalize function.buildUri function.resolve when only a new fragment is specified.San José, CalConnect XXXII release!
resolve and a split function.How can I help you explore Laravel packages today?