Author Source Code Latest Stable Version Software License Build Status Total Downloads

The library is a meta package which provides simple and intuitive classes to parse, validate and manipulate URIs and their components in PHP. Out of the box the library validates the following URI specific schemes:

and allow to easily manage others scheme specific URIs.

System Requirements


The library is available on Packagist and should be installed using Composer. This can be done by running the following command on a composer installed box:

$ composer require league/uri

Most modern frameworks will include Composer out of the box, but ensure the following file is included:


// Include the Composer autoloader
require 'vendor/autoload.php';


The URI meta package contains:

the following fully decoupled libraries:

the following libraries: