PHPackages                             league/uri-parser - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. league/uri-parser

Abandoned → [league/uri-interfaces](/?search=league%2Furi-interfaces)ArchivedLibrary[Parsing &amp; Serialization](/categories/parsing)

league/uri-parser
=================

userland URI parser RFC 3986 compliant

1.4.1(7y ago)39218.6M—1.6%107MITPHPPHP &gt;=7.0.0

Since Oct 17Pushed 5y ago6 watchersCompare

[ Source](https://github.com/thephpleague/uri-parser)[ Packagist](https://packagist.org/packages/league/uri-parser)[ Docs](https://github.com/thephpleague/uri-parser)[ RSS](/packages/league-uri-parser/feed)WikiDiscussions 1.x Synced 1mo ago

READMEChangelog (10)Dependencies (5)Versions (15)Used By (7)

League Uri Parser
=================

[](#league-uri-parser)

[![Build Status](https://camo.githubusercontent.com/af07d14b4ff9d41d995762ced77e00907475230b7bcc5613264a2a404606f7a9/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f7468657068706c65616775652f7572692d7061727365722f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/thephpleague/uri-parser)[![Latest Version](https://camo.githubusercontent.com/cd8831047bdb273daf90471af0ce451633a4a63eb72a8b4ed05811a93a2c3cd4/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f7468657068706c65616775652f7572692d7061727365722e7376673f7374796c653d666c61742d737175617265)](https://github.com/thephpleague/uri-parser/releases)

This package contains a userland PHP uri parser compliant with [RFC 3986](http://tools.ietf.org/html/rfc3986).

THIS PACKAGE IS ON MAINTENANCE MODE SINCE 2019-10-18, FOR ANY NEW PROJECT PLEASE USE [league/uri v6+](https://github.com/thephpleague/uri)
==========================================================================================================================================

[](#this-package-is-on-maintenance-mode-since-2019-10-18-for-any-new-project-please-use-leagueuri-v6)

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

[](#system-requirements)

You need:

- **PHP &gt;= 7.0** but the latest stable version of PHP is recommended

While the library no longer requires the `ext/intl` extension, it is strongly advise to install this extension if you are dealing with URIs containing non-ASCII host. Without the extension, the parser will throw an exception if such URI is parsed.

Installation
------------

[](#installation)

```
$ composer require league/uri-parser
```

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

[](#documentation)

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

Testing
-------

[](#testing)

`League Uri Parser` has a :

- a [PHPUnit](https://phpunit.de) test suite
- a coding style compliance test suite using [PHP CS Fixer](http://cs.sensiolabs.org/).
- a code analysis compliance test suite using [PHPStan](https://github.com/phpstan/phpstan).

To run the tests, run the following command from the project folder.

```
$ composer test
```

Contributing
------------

[](#contributing)

Contributions are welcome and will be fully credited. Please see [CONTRIBUTING](.github/CONTRIBUTING.md) and [CONDUCT](CONDUCT.md) for details.

Security
--------

[](#security)

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

Credits
-------

[](#credits)

- [ignace nyamagana butera](https://github.com/nyamsprod)
- [All Contributors](https://github.com/thephpleague/uri-parser/contributors)

License
-------

[](#license)

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

###  Health Score

49

—

FairBetter than 95% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity65

Solid adoption and visibility

Community34

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 91% 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 ~119 days

Recently: every ~326 days

Total

15

Last Release

1829d ago

Major Versions

0.3.0 → 1.0.02017-01-04

PHP version history (2 changes)0.1.0PHP &gt;=5.6.0

1.0.1PHP &gt;=7.0.0

### 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 (972 commits)")[![localheinz](https://avatars.githubusercontent.com/u/605483?v=4)](https://github.com/localheinz "localheinz (24 commits)")[![Fleshgrinder](https://avatars.githubusercontent.com/u/1059453?v=4)](https://github.com/Fleshgrinder "Fleshgrinder (16 commits)")[![trowski](https://avatars.githubusercontent.com/u/1628287?v=4)](https://github.com/trowski "trowski (12 commits)")[![GrahamCampbell](https://avatars.githubusercontent.com/u/2829600?v=4)](https://github.com/GrahamCampbell "GrahamCampbell (6 commits)")[![shadowhand](https://avatars.githubusercontent.com/u/38203?v=4)](https://github.com/shadowhand "shadowhand (5 commits)")[![rbayliss](https://avatars.githubusercontent.com/u/654407?v=4)](https://github.com/rbayliss "rbayliss (4 commits)")[![lucasmichot](https://avatars.githubusercontent.com/u/513603?v=4)](https://github.com/lucasmichot "lucasmichot (3 commits)")[![EvaLok](https://avatars.githubusercontent.com/u/12283250?v=4)](https://github.com/EvaLok "EvaLok (3 commits)")[![kelunik](https://avatars.githubusercontent.com/u/2743004?v=4)](https://github.com/kelunik "kelunik (2 commits)")[![Evan-R](https://avatars.githubusercontent.com/u/2487675?v=4)](https://github.com/Evan-R "Evan-R (2 commits)")[![marijnvdwerf](https://avatars.githubusercontent.com/u/737603?v=4)](https://github.com/marijnvdwerf "marijnvdwerf (2 commits)")[![makasim](https://avatars.githubusercontent.com/u/143206?v=4)](https://github.com/makasim "makasim (2 commits)")[![teohhanhui](https://avatars.githubusercontent.com/u/548843?v=4)](https://github.com/teohhanhui "teohhanhui (1 commits)")[![baileylo](https://avatars.githubusercontent.com/u/145345?v=4)](https://github.com/baileylo "baileylo (1 commits)")[![Zeichen32](https://avatars.githubusercontent.com/u/1432899?v=4)](https://github.com/Zeichen32 "Zeichen32 (1 commits)")[![Baptouuuu](https://avatars.githubusercontent.com/u/851425?v=4)](https://github.com/Baptouuuu "Baptouuuu (1 commits)")[![bcrowe](https://avatars.githubusercontent.com/u/752603?v=4)](https://github.com/bcrowe "bcrowe (1 commits)")[![chrismou](https://avatars.githubusercontent.com/u/319883?v=4)](https://github.com/chrismou "chrismou (1 commits)")[![FractalizeR](https://avatars.githubusercontent.com/u/318489?v=4)](https://github.com/FractalizeR "FractalizeR (1 commits)")

---

Tags

phprfc-3986rfc-3987uriuri-parserurlurl-standardurlurirfc3986parse\_urlrfc3987parser

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[league/uri

URI manipulation library

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

Common tools for parsing and resolving RFC3987/RFC3986 URI

536204.9M23](/packages/league-uri-interfaces)[crwlr/url

Swiss Army knife for URLs.

11073.3k3](/packages/crwlr-url)[vstelmakh/url-highlight

Library to parse urls from string input

102849.1k9](/packages/vstelmakh-url-highlight)[riimu/kit-urlparser

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

33565.4k2](/packages/riimu-kit-urlparser)[zenstruck/uri

Object-oriented wrapper/manipulator for parse\_url with additional features.

1767.8k5](/packages/zenstruck-uri)

PHPackages © 2026

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