PHPackages                             league/uri-interfaces - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. league/uri-interfaces

ActiveLibrary[HTTP &amp; Networking](/categories/http)

league/uri-interfaces
=====================

Common tools for parsing and resolving RFC3987/RFC3986 URI

7.8.1(2mo ago)538204.9M↑10.7%1020MITPHPPHP ^8.1CI passing

Since Oct 17Pushed 2mo ago4 watchersCompare

[ Source](https://github.com/thephpleague/uri-interfaces)[ Packagist](https://packagist.org/packages/league/uri-interfaces)[ Docs](https://uri.thephpleague.com)[ GitHub Sponsors](https://github.com/sponsors/nyamsprod)[ RSS](/packages/league-uri-interfaces/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (2)Versions (26)Used By (20)

Uri Interfaces
==============

[](#uri-interfaces)

[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Latest Version](https://camo.githubusercontent.com/821300e735936d22397a3c14f021434436e7427eb71caddcfc1838c35eb259bb/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f7468657068706c65616775652f7572692d696e74657266616365732e7376673f7374796c653d666c61742d737175617265)](https://github.com/thephpleague/uri-interfaces/releases)[![Total Downloads](https://camo.githubusercontent.com/12f50117f634aa2e0aab22d701f387c6869b80cf675076bccb50547cc5194d27/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c65616775652f7572692d696e74657266616365732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/league/uri-interfaces)

This package contains an interface to represents URI objects according to [RFC 3986](http://tools.ietf.org/html/rfc3986).

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

System Requirements
-------------------

[](#system-requirements)

You require **PHP &gt;= 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.

Install
-------

[](#install)

```
$ composer require league/uri-interfaces

```

Documentation
-------------

[](#documentation)

Full documentation can be found at [uri.thephpleague.com](http://uri.thephpleague.com).

License
-------

[](#license)

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

###  Health Score

74

—

ExcellentBetter than 100% of packages

Maintenance87

Actively maintained with recent releases

Popularity74

Solid adoption and visibility

Community33

Small or concentrated contributor base

Maturity82

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 97.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~143 days

Recently: every ~114 days

Total

25

Last Release

71d ago

Major Versions

0.4.0 → 1.0.02017-01-04

1.1.1 → 2.0.02019-10-17

2.3.0 → 7.0.0-beta.12023-06-17

PHP version history (5 changes)0.1.0PHP &gt;=5.3.0

2.0.0PHP ^7.1

2.2.0PHP ^7.1 || ^8.0

2.3.0PHP ^7.2 || ^8.0

7.0.0-beta.1PHP ^8.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/534693?v=4)[Frank de Jonge](/maintainers/frankdejonge)[@frankdejonge](https://github.com/frankdejonge)

![](https://avatars.githubusercontent.com/u/51073?v=4)[Ignace Nyamagana Butera](/maintainers/nyamsprod)[@nyamsprod](https://github.com/nyamsprod)

---

Top Contributors

[![nyamsprod](https://avatars.githubusercontent.com/u/51073?v=4)](https://github.com/nyamsprod "nyamsprod (329 commits)")[![reedy](https://avatars.githubusercontent.com/u/67615?v=4)](https://github.com/reedy "reedy (2 commits)")[![Nyholm](https://avatars.githubusercontent.com/u/1275206?v=4)](https://github.com/Nyholm "Nyholm (1 commits)")[![Simbiat](https://avatars.githubusercontent.com/u/6022665?v=4)](https://github.com/Simbiat "Simbiat (1 commits)")[![someniatko](https://avatars.githubusercontent.com/u/15856706?v=4)](https://github.com/someniatko "someniatko (1 commits)")[![S-Tian86](https://avatars.githubusercontent.com/u/41212477?v=4)](https://github.com/S-Tian86 "S-Tian86 (1 commits)")[![derrabus](https://avatars.githubusercontent.com/u/1506493?v=4)](https://github.com/derrabus "derrabus (1 commits)")[![stof](https://avatars.githubusercontent.com/u/439401?v=4)](https://github.com/stof "stof (1 commits)")[![GrahamCampbell](https://avatars.githubusercontent.com/u/2829600?v=4)](https://github.com/GrahamCampbell "GrahamCampbell (1 commits)")

---

Tags

contracts-programmingphpuriuri-interfaceshttppsr-7urlurihttpsftphostnamedata-uriwsrfc3986parse\_urlrfc6570querystringquery-stringrfc3987parse\_strfile-uri

### Embed Badge

![Health badge](/badges/league-uri-interfaces/health.svg)

```
[![Health](https://phpackages.com/badges/league-uri-interfaces/health.svg)](https://phpackages.com/packages/league-uri-interfaces)
```

###  Alternatives

[league/uri

URI manipulation library

1.1k206.4M277](/packages/league-uri)[guzzlehttp/psr7

PSR-7 message implementation that also provides common utility methods

8.0k1.0B3.2k](/packages/guzzlehttp-psr7)[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78126.4M414](/packages/react-http)[crwlr/url

Swiss Army knife for URLs.

11073.3k3](/packages/crwlr-url)[riimu/kit-urlparser

RFC 3986 compliant url parsing library with PSR-7 Uri component

33565.4k2](/packages/riimu-kit-urlparser)[bentools/querystring

Query String manipulation library. PHP 7.1+. No dependency, immutable, PSR-7 compliant.

1339.5k7](/packages/bentools-querystring)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
