PHPackages                             osslibs/uri - 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. osslibs/uri

ActiveLibrary

osslibs/uri
===========

v1.0.3(4y ago)04PHP

Since Feb 3Pushed 4y agoCompare

[ Source](https://github.com/osslibs/uri.php)[ Packagist](https://packagist.org/packages/osslibs/uri)[ RSS](/packages/osslibs-uri/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (1)Dependencies (1)Versions (5)Used By (0)

osslibs/uri
===========

[](#osslibsuri)

Priorities
----------

[](#priorities)

1. Define a URI interface with methods returning URI components as outlined in [RFC 3986-#section-3](https://www.ietf.org/rfc/rfc3986.html#section-3)
2. URI parsing according to [RFC 3986-#section-3](https://www.ietf.org/rfc/rfc3986.html#section-3)
3. URI merging according to [RFC 3986#section-5.2.3](https://www.ietf.org/rfc/rfc3986.html#section-5.2.3)

Requirements
------------

[](#requirements)

- php

Install
-------

[](#install)

```
php composer.phar require osslibs/uri

```

Examples
--------

[](#examples)

```
> use function osslibs\URI\uri as uri;
> use function osslibs\URI\mutable_uri as mutable_uri;
>
> $uri = uri("scheme://user@host:port/path?query#fragment")
> echo $uri->getScheme();
"scheme"
> echo $uri->getUserInfo();
"user"
> echo $uri->getHost();
"host"
> echo $uri->getPort();
"port"
> echo $uri->getAuthority();
"user@host:port"
> echo $uri->getPath();
"path"
> echo $uri->getQuery();
"query"
> echo $uri->getFragment();
"fragment"
> echo (string)$uri;
"scheme://user@host:port/path?query#fragment"

```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

4

Last Release

1565d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/70659a589006224592c0209ef8e111aef4a7daab0762acd0a37fe5cb08e3d9ac?d=identicon)[osslibs](/maintainers/osslibs)

---

Top Contributors

[![chemisus](https://avatars.githubusercontent.com/u/394062?v=4)](https://github.com/chemisus "chemisus (18 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

PHPackages © 2026

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