mirror of
https://github.com/YunoHost-Apps/hubzilla_ynh.git
synced 2024-09-03 19:26:21 +02:00
55 lines
1.5 KiB
Markdown
55 lines
1.5 KiB
Markdown
sabre/uri
|
|
=========
|
|
|
|
sabre/uri is a lightweight library that provides several functions for working
|
|
with URIs, staying true to the rules of [RFC3986][2].
|
|
|
|
Partially inspired by [Node.js URL library][3], 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:
|
|
|
|
1. `resolve` to resolve relative urls.
|
|
2. `normalize` to aid in comparing urls.
|
|
3. `parse`, which works like PHP's [parse_url][6].
|
|
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.
|
|
|
|
|
|
Further reading
|
|
---------------
|
|
|
|
* [Installation][7]
|
|
* [Usage][8]
|
|
|
|
|
|
Build status
|
|
------------
|
|
|
|
| branch | status |
|
|
| ------ | ------ |
|
|
| master | [![Build Status](https://travis-ci.org/fruux/sabre-uri.svg?branch=master)](https://travis-ci.org/fruux/sabre-uri) |
|
|
|
|
|
|
Questions?
|
|
----------
|
|
|
|
Head over to the [sabre/dav mailinglist][4], or you can also just open a ticket
|
|
on [GitHub][5].
|
|
|
|
|
|
Made at fruux
|
|
-------------
|
|
|
|
This library is being developed by [fruux](https://fruux.com/). Drop us a line for commercial services or enterprise support.
|
|
|
|
[1]: http://sabre.io/uri/
|
|
[2]: https://tools.ietf.org/html/rfc3986/
|
|
[3]: http://nodejs.org/api/url.html
|
|
[4]: http://groups.google.com/group/sabredav-discuss
|
|
[5]: https://github.com/fruux/sabre-uri/issues/
|
|
[6]: http://php.net/manual/en/function.parse-url.php
|
|
[7]: http://sabre.io/uri/install/
|
|
[8]: http://sabre.io/uri/usage/
|