PHPackages                             league/uri-manipulations - 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-manipulations

Abandoned → [league/uri-components](/?search=league%2Furi-components)ArchivedLibrary[HTTP &amp; Networking](/categories/http)

league/uri-manipulations
========================

URI manipulation library

1.5.0(8y ago)2036.2M—3.4%11MITPHPPHP &gt;=7.0

Since Dec 1Pushed 5y ago5 watchersCompare

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

READMEChangelog (9)Dependencies (11)Versions (10)Used By (1)

URI manipulations
=================

[](#uri-manipulations)

This package is EOL since 2019-10-18
====================================

[](#this-package-is-eol-since-2019-10-18)

**You should instead use:**

- **[The latest League URI package](https://github.com/thephpleague/uri/releases).**
- **[The latest League URI components package](https://github.com/thephpleague/uri-components/releases).**

[![Build Status](https://camo.githubusercontent.com/3f2af50b232762fd46850ccfaef425d33a6243df4bf29299ef1e30463aef45b2/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f7468657068706c65616775652f7572692d6d616e6970756c6174696f6e732f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/thephpleague/uri-manipulations)[![Latest Version](https://camo.githubusercontent.com/9b6134a2b58091bbb93e07f8fb86d701e0585b64ec9c857e25a092c90056bf0f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f7468657068706c65616775652f7572692d6d616e6970756c6174696f6e732e7376673f7374796c653d666c61742d737175617265)](https://github.com/thephpleague/uri-manipulations/releases)

The package contains:

- an object to format URI string representation output;
- a function to get the URI reference information according to [RFC3986](https://tools.ietf.org/html/rfc3986#section-4);
- URI middlewares to ease filtering and manipulating Uri objects;

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

[](#system-requirements)

You need:

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

Dependencies
------------

[](#dependencies)

- [PSR-7](http://www.php-fig.org/psr/psr-7/)
- [League Uri Interfaces](https://github.com/thephpleague/uri-interfaces)
- [League Uri Components](https://github.com/thephpleague/uri-components)

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

[](#installation)

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

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

[](#documentation)

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

Testing
-------

[](#testing)

`League Uri Manipulations` 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/contributors)

License
-------

[](#license)

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

###  Health Score

45

—

FairBetter than 93% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity56

Moderate usage in the ecosystem

Community25

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 92.5% 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 ~58 days

Recently: every ~35 days

Total

9

Last Release

2987d ago

Major Versions

0.2.0 → 1.0.02017-01-17

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

1.0.0PHP &gt;=7.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 (947 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)")[![shadowhand](https://avatars.githubusercontent.com/u/38203?v=4)](https://github.com/shadowhand "shadowhand (5 commits)")[![GrahamCampbell](https://avatars.githubusercontent.com/u/2829600?v=4)](https://github.com/GrahamCampbell "GrahamCampbell (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)")[![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)")[![Zeichen32](https://avatars.githubusercontent.com/u/1432899?v=4)](https://github.com/Zeichen32 "Zeichen32 (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)")[![hannesvdvreken](https://avatars.githubusercontent.com/u/1410358?v=4)](https://github.com/hannesvdvreken "hannesvdvreken (1 commits)")[![jamesdb](https://avatars.githubusercontent.com/u/6299056?v=4)](https://github.com/jamesdb "jamesdb (1 commits)")[![janhohner](https://avatars.githubusercontent.com/u/649895?v=4)](https://github.com/janhohner "janhohner (1 commits)")[![philsturgeon](https://avatars.githubusercontent.com/u/67381?v=4)](https://github.com/philsturgeon "philsturgeon (1 commits)")[![rdohms](https://avatars.githubusercontent.com/u/94331?v=4)](https://github.com/rdohms "rdohms (1 commits)")[![strayobject](https://avatars.githubusercontent.com/u/2257473?v=4)](https://github.com/strayobject "strayobject (1 commits)")

---

Tags

phppsr7-urirfc-3986rfc-3987uriuri-formatteruri-manipulationsuri-normalizeuri-relativizeuri-resolvepsr-7urlurirfc3986rfc3987formattermanipulationmanipulationsreferencesmiddlewaresmodifiers

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

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

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

###  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)[guzzlehttp/psr7

PSR-7 message implementation that also provides common utility methods

7.9k1.0B3.2k](/packages/guzzlehttp-psr7)[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)[pear/net_url2

Class for parsing and handling URL. Provides parsing of URLs into their constituent parts (scheme, host, path etc.), URL generation, and resolving of relative URLs.

4912.2M32](/packages/pear-net-url2)

PHPackages © 2026

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