Description
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% unitested and many tests are based on
examples from RFC3986.
The library provides the following functions:
sabre/uri alternatives and similar libraries
Based on the "URL" category.
Alternatively, view sabre/uri alternatives based on common mentions on social networks and blogs.
-
PHP Domain Parser
Public Suffix List based domain parsing implemented in PHP -
Purl
Purl is a simple Object Oriented URL manipulation library for PHP 7.2+ -
crwlr / query-string
A library for convenient handling of query strings used in HTTP requests.
Access the most powerful time series database as a service
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of sabre/uri or a related project?
README
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% unitested and many tests are based on examples from RFC3986.
The library provides the following functions:
resolve
to resolve relative urls.normalize
to aid in comparing urls.parse
, which works like PHP's parse_url.build
to do the exact opposite ofparse
.split
to easily get the 'dirname' and 'basename' of a URL without all the problems those two functions have.
Build status
branch | status | minimum PHP version |
---|---|---|
master | 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.