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

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

league/uri-schemes
==================

URI manipulation library

1.2.1(7y ago)2137.0M↓24.4%8[1 issues](https://github.com/thephpleague/uri-schemes/issues)[1 PRs](https://github.com/thephpleague/uri-schemes/pulls)3MITPHPPHP &gt;=7.0.13

Since Oct 17Pushed 5y ago1 watchersCompare

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

READMEChangelog (10)Dependencies (8)Versions (18)Used By (3)

Uri Schemes
===========

[](#uri-schemes)

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).**

[![Build Status](https://camo.githubusercontent.com/bf870b044e74d3a3390c58cd8e9f84df136c1e9c9a82ec591dd839e3b51eb3fa/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f7468657068706c65616775652f7572692d736368656d65732f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/thephpleague/uri-schemes)[![Latest Version](https://camo.githubusercontent.com/b14dcf038fed1a14abdc4748cf89ee86fbb55b32d0be997566d888dc7e55e265/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f7468657068706c65616775652f7572692d736368656d65732e7376673f7374796c653d666c61742d737175617265)](https://github.com/thephpleague/uri-components/schemes)

This package contains concrete URI objects represented as immutable value object. Each URI object implements the `League\Uri\Interfaces\Uri` interface as defined in the [uri-interfaces package](https://github.com/thephpleague/uri-interfaces) or the `Psr\Http\Message\UriInterface` from [PSR-7](http://www.php-fig.org/psr/psr-7/).

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

[](#system-requirements)

You need:

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

While the library no longer requires the `intl` extension, it is strongly advise to install this extension if you are dealing with URIs containing non-ASCII host. Without it, an exception will be thrown if such host is used.

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

[](#dependencies)

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

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

[](#installation)

```
$ composer require league/uri-schemes

```

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

[](#documentation)

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

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

[](#contributing)

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

Testing
-------

[](#testing)

`League Uri Schemes` 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
```

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

47

—

FairBetter than 93% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity59

Moderate usage in the ecosystem

Community28

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 92.1% 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 ~101 days

Recently: every ~310 days

Total

17

Last Release

1924d ago

Major Versions

0.4.0 → 1.0.02017-01-04

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

1.0.0PHP &gt;=7.0

1.1.1PHP &gt;=7.0.13

### Community

Maintainers

![](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 (987 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)")[![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)")[![mudhoney](https://avatars.githubusercontent.com/u/1138866?v=4)](https://github.com/mudhoney "mudhoney (3 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)")[![makasim](https://avatars.githubusercontent.com/u/143206?v=4)](https://github.com/makasim "makasim (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)")[![svenluijten](https://avatars.githubusercontent.com/u/11269635?v=4)](https://github.com/svenluijten "svenluijten (1 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)")[![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)")[![hannesvdvreken](https://avatars.githubusercontent.com/u/1410358?v=4)](https://github.com/hannesvdvreken "hannesvdvreken (1 commits)")

---

Tags

phppsr7-uripsr7-uriinterfacerfc-3986rfc-3987uriuri-normalizeuri-validationhttppsr-7urlurihttpsftpdata-uriwsrfc3986parse\_urlfilewss

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[league/uri

URI manipulation library

1.1k240.0M392](/packages/league-uri)[league/uri-interfaces

Common tools for parsing and resolving RFC3987/RFC3986 URI

539238.7M44](/packages/league-uri-interfaces)[guzzlehttp/psr7

PSR-7 message implementation that also provides common utility methods

8.0k1.1B4.0k](/packages/guzzlehttp-psr7)[amphp/http-server

A non-blocking HTTP application server for PHP based on Amp.

1.3k6.7M109](/packages/amphp-http-server)[crwlr/url

Swiss Army knife for URLs.

10985.9k5](/packages/crwlr-url)[riimu/kit-urlparser

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

33566.8k2](/packages/riimu-kit-urlparser)

PHPackages © 2026

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