PHPackages                             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. pear/net\_url2

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

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.

v2.2.3(1y ago)4912.2M—3.3%27[3 PRs](https://github.com/pear/Net_URL2/pulls)20BSD-3-ClausePHPPHP &gt;=5.1.4CI passing

Since Dec 24Pushed 1y ago14 watchersCompare

[ Source](https://github.com/pear/Net_URL2)[ Packagist](https://packagist.org/packages/pear/net_url2)[ Docs](https://github.com/pear/Net_URL2)[ RSS](/packages/pear-net-url2/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (20)Used By (20)

[![Net_URL2 on Packagist](https://camo.githubusercontent.com/ad916bc4d01613c8af1320cd7da052d6f798c3782da7a380f6540b6ee213efff/68747470733a2f2f706f7365722e707567782e6f72672f706561722f6e65745f75726c322f762f737461626c652e706e67)](https://packagist.org/packages/pear/net_url2)[![Scrutinizer Quality Score](https://camo.githubusercontent.com/10f15cbf2db4619951b1aa0be6ced8ded0562f2e601f4aed66b5759edd314104/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f706561722f4e65745f55524c322f6261646765732f7175616c6974792d73636f72652e706e673f733d32336230643366306564353865653836353331376335303065653263626539343531373433386563)](https://scrutinizer-ci.com/g/pear/Net_URL2/)[![Code Coverage](https://camo.githubusercontent.com/cb09c64f5034dcf60868387ef89e1691d91f04df1861ba3c200670844c40de10/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f706561722f4e65745f55524c322f6261646765732f636f7665726167652e706e673f733d34346433363832643763646566343731353730643830646438613732393061316532336664666565)](https://scrutinizer-ci.com/g/pear/Net_URL2/)

Net\_URL2
=========

[](#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.

This package is [Pear Net\_URL2](https://pear.php.net/package/Net_URL2) and has been migrated from [Pear SVN](https://svn.php.net/repository/pear/packages/Net_URL2)

Please report all new issues via the [PEAR bug tracker](https://pear.php.net/bugs/search.php?cmd=display&package_name%5B%5D=Net_URL2).

On Packagist as [pear/net\_url2](https://packagist.org/packages/pear/net_url2).

Testing, Packaging and Installing (Pear)
----------------------------------------

[](#testing-packaging-and-installing-pear)

To test, run either

```
$ phpunit tests/

```

or

```
$ pear run-tests -r

```

To build, simply

```
$ pear package

```

To install from scratch

```
$ pear install package.xml

```

To upgrade

```
$ pear upgrade -f package.xml

```

###  Health Score

55

—

FairBetter than 98% of packages

Maintenance46

Moderate activity, may be stable

Popularity60

Solid adoption and visibility

Community37

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 76.2% 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 ~228 days

Recently: every ~907 days

Total

19

Last Release

421d ago

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

v2.0.2PHP &gt;=5.1.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/49764e31ce91743160a21f469a251877fb05ef3a5eb98fbd605d8bcfe0a5a3e0?d=identicon)[ktomk](/maintainers/ktomk)

---

Top Contributors

[![ktomk](https://avatars.githubusercontent.com/u/352517?v=4)](https://github.com/ktomk "ktomk (115 commits)")[![till](https://avatars.githubusercontent.com/u/27003?v=4)](https://github.com/till "till (16 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)")[![reedy](https://avatars.githubusercontent.com/u/67615?v=4)](https://github.com/reedy "reedy (3 commits)")[![ashnazg](https://avatars.githubusercontent.com/u/100170?v=4)](https://github.com/ashnazg "ashnazg (3 commits)")[![saltybeagle](https://avatars.githubusercontent.com/u/92284?v=4)](https://github.com/saltybeagle "saltybeagle (2 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)")[![akurth](https://avatars.githubusercontent.com/u/3693724?v=4)](https://github.com/akurth "akurth (1 commits)")[![Krinkle](https://avatars.githubusercontent.com/u/156867?v=4)](https://github.com/Krinkle "Krinkle (1 commits)")

---

Tags

libraryphpurlurl-parserurlurirfc3986netPEARnetworking

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[guzzlehttp/psr7

PSR-7 message implementation that also provides common utility methods

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

Maps an HTTP request to a set of configuration variables

7.6k789.4M1.8k](/packages/symfony-routing)[league/uri

URI manipulation library

1.1k206.4M277](/packages/league-uri)[league/uri-interfaces

Common tools for parsing and resolving RFC3987/RFC3986 URI

536204.9M23](/packages/league-uri-interfaces)[crwlr/url

Swiss Army knife for URLs.

11073.3k3](/packages/crwlr-url)[riimu/kit-urlparser

RFC 3986 compliant url parsing library with PSR-7 Uri component

33565.4k2](/packages/riimu-kit-urlparser)

PHPackages © 2026

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