Intuitive
{% include building-block.md %}Highlights
This suite of packages provides intuitive classes to parse, validate, format and manipulate URIs and their components. It is built to enable working with any kind of RFC3986 compliant URI and also follow closely the latest WHATWG Living standard specification.
It provides an enhanced replacement for PHP's parse_url
, http_build_query
, and PECL's http_build_url
functions.
Simple and extensible API
RFC3986 compliant
follows URL Living Standard specifications
Implements PSR-7
UriInterface
interfaceFramework-agnostic
Packages
building blocks
- uri
- This is the main package. Its goal is to ease the generation and manipulation of URI objects, independently of its scheme.
- uri-components
- This package complements the URI package, providing an object-oriented way to access and manipulate each component value of the underlying URI.
Deprecated blocks
- uri-schemes
- Collection of URI objects.
This package is deprecated because it conflicts with, and is superseded by, the latest URI object package.
- uri-manipulations
- Functions and Middleware to ease URI object manipulation.
This package is deprecated because it is superseded by the latest URI component object package.
- uri-hostname-parser
- A lightweight public suffix list ICANN section parser.
This package is deprecated and its feature removed as it was a temporary solution. Other dedicated PHP package like PHP Domain Parser provides a better, and more stable, approach.
Helpers blocks
- uri-parser
- a PHP user land RFC3986 compliant parser and builder to turn any valid URI string into an array and to build an URI out of a given array.
- uri-query-parser
- modern URI query string parser and builder based on RFC3986 and the URL Living Standard.
Questions?
The packages were created by {{ site.data.project.author.name }}. Find him on Twitter at @{{ site.data.project.author.twitter_account }}.