PHPackages                             ddliu/normurl - 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. ddliu/normurl

ActiveLibrary

ddliu/normurl
=============

Normalize URL

v0.1.1(11y ago)1772MITPHP

Since Nov 5Pushed 11y ago1 watchersCompare

[ Source](https://github.com/ddliu/normurl)[ Packagist](https://packagist.org/packages/ddliu/normurl)[ RSS](/packages/ddliu-normurl/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (3)Used By (2)

normurl
=======

[](#normurl)

Normalize URL.

Features
--------

[](#features)

- Resolve relative URL
- Remove anchor
- Remove dot segment
- Convert scheme and host name to lower case (TODO)

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

[](#installation)

```
composer require ddliu\normurl

```

Usage
-----

[](#usage)

```
use ddliu\normurl\Url;

echo Url::normalize('../hello/world.html', 'http://example.com/about/index.html');
// http://example.com/hello/world.html
```

License
-------

[](#license)

MIT

This project is based on [url\_to\_absolute](http://nadeausoftware.com/node/79) by [David R. Nadeau](http://nadeausoftware.com/).

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity54

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

4212d ago

### Community

Maintainers

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

---

Top Contributors

[![ddliu](https://avatars.githubusercontent.com/u/797146?v=4)](https://github.com/ddliu "ddliu (3 commits)")

### Embed Badge

![Health badge](/badges/ddliu-normurl/health.svg)

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

PHPackages © 2026

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