Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Uri Laravel Package

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.

View on GitHub
Deep Wiki
Context7

sabre/uri

sabre/uri is a lightweight library that provides several functions for working with URIs, staying true to the rules of RFC3986.

Partially inspired by Node.js URL library, and created to solve real problems in PHP applications. 100% unit tested and many tests are based on examples from RFC3986.

The library provides the following functions:

  1. resolve to resolve relative urls.
  2. normalize to aid in comparing urls.
  3. parse, which works like PHP's parse_url with special cases for some Windows-style paths 9.
  4. build to do the exact opposite of parse.
  5. split to easily get the 'dirname' and 'basename' of a URL without all the problems those two functions have.

Build status

Build Status

release minimum PHP version
master PHP 7.4
3.0 PHP 7.4
2.3 PHP 7.4
2.2 PHP 7.1
2.0,2.1 PHP 7.0
1.x PHP 5.4.7

Further reading

Questions?

Head over to the sabre/dav mailinglist, or you can also just open a ticket on GitHub.

Made at fruux

This library is being developed by fruux. Drop us a line for commercial services or enterprise support.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport