The League of Extraordinary Packages

Our Packages:

Presented by The League of Extraordinary Packages

Getting Started


Uri Schemes

Uri manipulation

Uri Parts API


Upgrading Guide

This is the documentation for the unsupported version 4.0. Please consider upgrading your code to the latest stable version


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';

Going Solo

You can also use the library without Composer by:

Once extracted you will be able to load the library using any PSR-4 compatible autoloader.

If you choose to install the package manually, you are responsible for installing and autoloading the following dependencies: