PHPackages                             rkr/url - 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. rkr/url

ActiveLibrary

rkr/url
=======

Url builder

0.2.3(1y ago)11.6kMITPHPPHP &gt;= 8.0

Since Oct 23Pushed 1y ago2 watchersCompare

[ Source](https://github.com/rkrx/php-url)[ Packagist](https://packagist.org/packages/rkr/url)[ Docs](https://github.com/rkrx/php-url)[ RSS](/packages/rkr-url/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (8)Dependencies (2)Versions (10)Used By (0)

php-url
=======

[](#php-url)

Url-manipulation component

[![Build Status](https://camo.githubusercontent.com/f0cb4743b0df8f8558ea4e58f9fda32f2ae8166da8a1fcd7a566c4b9a0ae3fbe/68747470733a2f2f7472617669732d63692e6f72672f726b72782f7068702d75726c2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/rkrx/php-url)

```
$url = new Url('/subpath?a=1', 'http://example.org/#test');
echo (string) $url; // http://example.org/subpath?a=1#test

var_dump($url->getScheme());
var_dump($url->getUsername());
var_dump($url->getPassword());
var_dump($url->getHost());
var_dump($url->getPort());
var_dump($url->getPath());
var_dump($url->getQuery());
var_dump($url->getFragment());
```

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance46

Moderate activity, may be stable

Popularity20

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity64

Established project with proven stability

 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 ~543 days

Recently: every ~925 days

Total

8

Last Release

418d ago

PHP version history (2 changes)0.2.1PHP &gt;= 5.6.0

0.2.3PHP &gt;= 8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/7f83d7e57a4bf3f1309680dbfbbf2d022f0ee6dae64a4b3bdfbed1226f2f6bef?d=identicon)[rkr](/maintainers/rkr)

---

Top Contributors

[![rkrx](https://avatars.githubusercontent.com/u/5672982?v=4)](https://github.com/rkrx "rkrx (25 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/rkr-url/health.svg)

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

PHPackages © 2026

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