PHPackages                             enrise/urihelper - 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. enrise/urihelper

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

enrise/urihelper
================

A general URI helper class for PHP

1.0.2(11y ago)15116.8k↑15.3%52Apache 2.0PHPPHP &gt;=5.4

Since Apr 21Pushed 3y ago8 watchersCompare

[ Source](https://github.com/Enrise/UriHelper)[ Packagist](https://packagist.org/packages/enrise/urihelper)[ Docs](https://github.com/Enrise/UriHelper)[ RSS](/packages/enrise-urihelper/feed)WikiDiscussions develop Synced 1mo ago

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

Archived and unmaintained
=========================

[](#archived-and-unmaintained)

This is an old repository that is no longer used or maintained. We advice to no longer use this repository.

Original README can be found below:
-----------------------------------

[](#original-readme-can-be-found-below)

UriHelper
=========

[](#urihelper)

[![Build Status](https://camo.githubusercontent.com/aab36f0da67c1623d937db19d676da938f23f509c8ab8a7b9360eeb731f4ca1a/68747470733a2f2f7472617669732d63692e6f72672f456e726973652f55726948656c7065722e737667)](https://travis-ci.org/Enrise/UriHelper)

---

A simple URI helper class with implementations of the following RFC's / STD's:

- [RFC-3986](https://tools.ietf.org/html/rfc3986)
- [STD-66](http://tools.ietf.org/html/std66)

Usage
-----

[](#usage)

```
$uri = new \Enrise\Uri('http://usr:pss@example.com:81/mypath/myfile.html?a=b&b[]=2&b[]=3#myfragment');
echo $uri->getScheme(); // http
echo $uri->getUser(); // usr
echo $uri->getPass(); // pss
echo $uri->getHost(); // example.com
echo $uri->getPort(); // 81
echo $uri->getPath(); // /mypath/myfile.html
echo $uri->getQuery(); // a=b&b[]=2&b[]=3
echo $uri->getFragment(); // myfragment
echo $uri->isSchemeless(); // false
echo $uri->isRelative(); // false

$uri->setScheme('scheme:child:scheme.VALIDscheme123:');
$uri->setPort(null);

echo $uri->getUri(); // scheme:child:scheme.VALIDscheme123:usr:pss@example.com/mypath/myfile.html?a=b&b[]=2&b[]=3#myfragment
```

```
use \Enrise\Uri;

$uri = new Uri('/relative/url.html');
echo $uri->getScheme(); // null
echo $uri->getHost(); // null
echo $uri->getPath(); // /relative/url.html
echo $uri->isSchemeless(); // true
echo $uri->isRelative(); // true
```

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity41

Moderate usage in the ecosystem

Community18

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 90.9% 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

3

Last Release

4045d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d901fcfc50d845e4d9145788b59143bcf1d928d0f3ea6b454a35e9addff39f79?d=identicon)[RobQuistNL](/maintainers/RobQuistNL)

---

Top Contributors

[![RobQuistNL](https://avatars.githubusercontent.com/u/1442796?v=4)](https://github.com/RobQuistNL "RobQuistNL (10 commits)")[![eXistenZNL](https://avatars.githubusercontent.com/u/1150201?v=4)](https://github.com/eXistenZNL "eXistenZNL (1 commits)")

---

Tags

collectionstypes

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/enrise-urihelper/health.svg)

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

###  Alternatives

[doctrine/collections

PHP Doctrine Collections library that adds additional functionality on top of PHP arrays.

6.0k411.1M1.2k](/packages/doctrine-collections)[dusank/knapsack

Collection library for PHP

5351.0M25](/packages/dusank-knapsack)[qaribou/immutable.php

Immutable, highly-performant collections, well-suited for functional programming and memory-intensive applications.

344146.0k](/packages/qaribou-immutablephp)[ilya/belt

A handful of tools for PHP developers.

71020.8k1](/packages/ilya-belt)[cekurte/environment

A library to get the values from environment variables and process to php data types

5884.0k7](/packages/cekurte-environment)[vistik/typed-collections

A simple way to create typed collections in PHP - build on Illuminate\\Support\\Collection

1128.2k5](/packages/vistik-typed-collections)

PHPackages © 2026

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