PHPackages                             grantholle/pear-net-url2 - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. grantholle/pear-net-url2

ActiveLibrary[HTTP &amp; Networking](/categories/http)

grantholle/pear-net-url2
========================

A psr-4 compliant port of pear/net\_url2: Class for parsing and handling URL. Provides parsing of URLs into their constituent parts (scheme, host, path etc.), URL generation, and resolving of relative URLs.

4.0.0(3y ago)11.2k3BSD-3-ClausePHPPHP ^8.1

Since Dec 24Pushed 3y agoCompare

[ Source](https://github.com/grantholle/pear-net-url2)[ Packagist](https://packagist.org/packages/grantholle/pear-net-url2)[ Docs](https://github.com/grantholle/pear-net-url2)[ RSS](/packages/grantholle-pear-net-url2/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (1)Versions (23)Used By (3)

Url2
====

[](#url2)

Class for parsing and handling URL. Provides parsing of URLs into their constituent parts (scheme, host, path etc.), URL generation, and resolving of relative URLs.

This package is has been adapted to be psr-4 compliant from [Pear Net\_URL2](https://github.com/pear/Net_URL2) which was migrated from \[Pear SVN\]

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

[](#installation)

```
composer install grantholle/pear-net-url2
```

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity81

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 76.1% 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 ~159 days

Recently: every ~500 days

Total

22

Last Release

1225d ago

Major Versions

v2.2.2 → 3.0.02020-08-14

3.0.2 → 4.0.02023-02-15

PHP version history (5 changes)v2.0.1PHP &gt;=5.0.0

v2.0.2PHP &gt;=5.1.4

3.0.0PHP ^7.2

3.0.2PHP ^7.2|^8.0

4.0.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/57ed974235b4a23e6aaf9d9039bff2b0d1268edc0e44ebab6e60e4bf1e6eb144?d=identicon)[grantholle](/maintainers/grantholle)

---

Top Contributors

[![ktomk](https://avatars.githubusercontent.com/u/352517?v=4)](https://github.com/ktomk "ktomk (105 commits)")[![till](https://avatars.githubusercontent.com/u/27003?v=4)](https://github.com/till "till (16 commits)")[![grantholle](https://avatars.githubusercontent.com/u/1189456?v=4)](https://github.com/grantholle "grantholle (4 commits)")[![CloCkWeRX](https://avatars.githubusercontent.com/u/365751?v=4)](https://github.com/CloCkWeRX "CloCkWeRX (4 commits)")[![cweiske](https://avatars.githubusercontent.com/u/59036?v=4)](https://github.com/cweiske "cweiske (4 commits)")[![saltybeagle](https://avatars.githubusercontent.com/u/92284?v=4)](https://github.com/saltybeagle "saltybeagle (2 commits)")[![Krinkle](https://avatars.githubusercontent.com/u/156867?v=4)](https://github.com/Krinkle "Krinkle (1 commits)")[![helgi](https://avatars.githubusercontent.com/u/70530?v=4)](https://github.com/helgi "helgi (1 commits)")[![fpoirotte](https://avatars.githubusercontent.com/u/499919?v=4)](https://github.com/fpoirotte "fpoirotte (1 commits)")

---

Tags

urlurirfc3986netPEARnetworking

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/grantholle-pear-net-url2/health.svg)

```
[![Health](https://phpackages.com/badges/grantholle-pear-net-url2/health.svg)](https://phpackages.com/packages/grantholle-pear-net-url2)
```

###  Alternatives

[pear/net_url2

Class for parsing and handling URL. Provides parsing of URLs into their constituent parts (scheme, host, path etc.), URL generation, and resolving of relative URLs.

4912.6M36](/packages/pear-net-url2)[guzzlehttp/psr7

PSR-7 message implementation that also provides common utility methods

7.9k1.1B3.8k](/packages/guzzlehttp-psr7)[symfony/routing

Maps an HTTP request to a set of configuration variables

7.6k819.6M2.3k](/packages/symfony-routing)[league/uri

URI manipulation library

1.1k228.3M363](/packages/league-uri)[league/uri-interfaces

Common tools for parsing and resolving RFC3987/RFC3986 URI

537226.9M39](/packages/league-uri-interfaces)[crwlr/url

Swiss Army knife for URLs.

10980.4k5](/packages/crwlr-url)

PHPackages © 2026

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