Common interfaces and classes for URI representation and interaction

Fund package maintenance!

Installs: 65 064 732

Dependents: 15

Suggesters: 0

Security: 0

Stars: 439

Watchers: 6

Forks: 8

7.4.1 2024-03-23 07:42 UTC


Software License Latest Version Total Downloads

This package contains an interface to represents URI objects according to RFC 3986.

⚠️ this is a sub-split, for development, pull requests and issues, visit: https://github.com/thephpleague/uri-src

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-interfaces


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


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