PHPackages                             chemisus/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. chemisus/uri

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

chemisus/uri
============

1.0(6y ago)04[1 PRs](https://github.com/chemisus/uri.php/pulls)PHPCI passing

Since Feb 6Pushed 4w ago1 watchersCompare

[ Source](https://github.com/chemisus/uri.php)[ Packagist](https://packagist.org/packages/chemisus/uri)[ RSS](/packages/chemisus-uri/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependencies (1)Versions (5)Used By (0)

URI
===

[](#uri)

Install
-------

[](#install)

```
composer require chemisus/uri

```

Examples
--------

[](#examples)

```
$uri = uri("http://example.com:8080/hello?name=chemisus");
echo $uri->scheme();        # http
echo $uri->host();          # example.com
echo $uri->port();          # 8080
echo $uri->authority();     # example.com:8080
echo $uri->path();          # /hello
echo $uri->query();         # name=chemisus
echo $uri;                  # http://example.com:8080/hello?name=chemisus

$child = $uri->with([
    URI::SCHEME => 'https',
    URI::PORT => null,
    URI::PATH => '/hello/world'
]);
echo $child->scheme();      # https
echo $child->host();        # example.com
echo $child->port();        #
echo $child->authority();   # example.com
echo $child->path();        # /hello/world
echo $child->query();       # name=chemisus
echo $child;                # https://example.com/hello/world?name=chemisus

```

###  Health Score

35

—

LowBetter than 79% of packages

Maintenance62

Regular maintenance activity

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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

2

Last Release

2291d ago

Major Versions

0.1 → 1.02020-02-06

### Community

Maintainers

![](https://www.gravatar.com/avatar/80a7c8d114a23a686a3fb4f4fb66a4a72549519f958b148713a7a155f49ff524?d=identicon)[chemisus](/maintainers/chemisus)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

PHPackages © 2026

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