URI manipulation library

Installs: 2 134 747

Dependents: 81

Suggesters: 6

Stars: 418

Watchers: 13

Forks: 34

Open Issues: 1


5.3.0 2018-03-14 17:19 UTC


Build Status Software License Latest Version Total Downloads

The Uri package provides simple and intuitive classes to create and manage URIs in PHP.


  • Simple API
  • RFC3986 and RFC3987 compliant
  • Implements the UriInterface from PSR-7
  • Fully documented
  • Framework Agnostic
  • Composer ready, PSR-2 and PSR-4 compliant


Full documentation can be found at uri.thephpleague.com.

System Requirements

You need:

  • PHP >= 7.0.13 but the latest stable version of PHP is recommended
  • the mbstring extension
  • the intl extension

To use the library.


We no longer recommend installing this package directly.

The package is a metapackage that aggregates all components related to processing and manipulating URI in PHP; in most cases, you will want a subset, and these may be installed separately.

The following components are part of the metapackage:

The primary use case for installing the entire suite is when upgrading from a version 4 release.

If you decide you still want to install the entire suite use Composer and run the following command on a composer installed box:

$ composer require league/uri


Contributions are welcome and will be fully credited. Please see CONTRIBUTING and CONDUCT for details.


If you discover any security related issues, please email nyamsprod@gmail.com instead of using the issue tracker.



The MIT License (MIT). Please see License File for more information.