URI

Modern API to process URI in PHP.

Highlights

This suite of packages provides simple and 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 through extensions and middlewares.

  1. Simple and extensible API

  2. RFC3986 compliant

  3. Implements PSR-7 UriInterface interface

  4. Framework-agnostic

Packages

uri
A meta package to ease URI manipulation.
uri-parser
RFC3986 compliant parser and builder.
uri-query-parser
modern URI query string parser and builder based on RFC3986 and the URL Living Standard.
uri-components
Collection of URI components objects.
uri-schemes
Collection of URI objects.
uri-manipulations
Functions and Middleware to ease URI Objects manipulations.
uri-hostname-parser
A lightweight public suffix list ICANN section parser.

Once a new major version is released, the previous stable release remains supported for six more months through patches and security fixes.

Questions?

The packages were created by Ignace Nyamagana Butera. Find him on Twitter at @nyamsprod.