Skip to content

[READ-ONLY] URI manipulation Library


Notifications You must be signed in to change notification settings


Repository files navigation


Software License Latest Version Total Downloads

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

⚠️ this is a sub-split, for development, pull requests and issues, visit:

System Requirements

You require PHP >= 8.1 but the latest stable version of PHP is recommended

Handling of an IDN host requires the presence of the intl extension or a polyfill for the intl IDN functions like the symfony/polyfill-intl-idn otherwise an exception will be thrown when attempting to validate or interact with such a host.

IPv4 conversion requires at least one of the following:

  • the GMP extension,
  • the BCMatch extension or
  • a 64-bits PHP version

otherwise an exception will be thrown when attempting to convert a host as an IPv4 address.



$ composer require league/uri


Full documentation can be found at


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