PHPackages                             balpom/href - 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. balpom/href

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

balpom/href
===========

Simple interface for HTTP links.

v2.1.0(1y ago)0191MITPHPPHP &gt;=8.1

Since May 28Pushed 1y ago1 watchersCompare

[ Source](https://github.com/balpom/href)[ Packagist](https://packagist.org/packages/balpom/href)[ Docs](https://www.balpom.ru)[ RSS](/packages/balpom-href/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (1)Versions (5)Used By (1)

balpom/href
===========

[](#balpomhref)

Very simple interface for HTTP links with link mapping.
-------------------------------------------------------

[](#very-simple-interface-for-http-links-with-link-mapping)

### Href object

[](#href-object)

Href object implements very simple HrefInterface, which has two methods: link() and mapping(). This may be very useful for some website parsing (like web.archive.org, anonymouse.org, etc.), which work as webproxy and modify original site links.

Simple sample for , which proxying by : link() method returned ** string, mapping() method, as variant, returned ** string.

### HrefCollection object

[](#hrefcollection-object)

HrefCollection object implements very simple HrefCollectionInterface, which has three methods: getAll(), getByLink(string $uri) and getByMapping(string $uri), and contains collection of unique Href objects.

getAll() method returns array, which contain Href objects. getByLink($uri) and getByMapping($uri) methods returns Href objects or false, if collection not consist Href object with requested $uri.

### Requirements

[](#requirements)

- **PHP &gt;= 8.1**

### Installation

[](#installation)

#### Using composer (recommended)

[](#using-composer-recommended)

```
composer require balpom/href
```

### License

[](#license)

MIT License See [LICENSE.MD](LICENSE.MD)

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity52

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

4

Last Release

717d ago

Major Versions

v1.0.2 → v2.0.02024-05-29

### Community

Maintainers

![](https://www.gravatar.com/avatar/5604ae7cc0bdc12fd8cf8867f3518ec3c9628f13707f127e700cdac1aec70b56?d=identicon)[balpom](/maintainers/balpom)

---

Top Contributors

[![balpom](https://avatars.githubusercontent.com/u/141855513?v=4)](https://github.com/balpom "balpom (9 commits)")

---

Tags

httpurluriweblinkpsr-13http2psr13parsinghrefweblink

### Embed Badge

![Health badge](/badges/balpom-href/health.svg)

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

###  Alternatives

[symfony/web-link

Manages links between resources

1.4k99.0M251](/packages/symfony-web-link)[guzzlehttp/psr7

PSR-7 message implementation that also provides common utility methods

8.0k1.0B3.2k](/packages/guzzlehttp-psr7)[fig/link-util

Common utility implementations for HTTP links

1.8k56.8M28](/packages/fig-link-util)[psr/link

Common interfaces for HTTP links

2.5k144.1M68](/packages/psr-link)[league/uri

URI manipulation library

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

Common tools for parsing and resolving RFC3987/RFC3986 URI

538204.9M23](/packages/league-uri-interfaces)

PHPackages © 2026

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