PHPackages                             balpom/web-link - 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/web-link

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

balpom/web-link
===============

Advanced interfaces for HTTP links and it's realisation.

v1.1.1(1y ago)0312MITPHPPHP &gt;=8.1

Since May 19Pushed 1y ago1 watchersCompare

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

READMEChangelog (3)Dependencies (2)Versions (4)Used By (2)

balpom/web-link
===============

[](#balpomweb-link)

WebLink component extends LinkInterface and EvolvableLinkInterface from PSR-13 Link definition interfaces
---------------------------------------------------------------------------------------------------------

[](#weblink-component-extends-linkinterface-and-evolvablelinkinterface-from-psr-13-link-definition-interfaces)

This WebLink component extends [PSR-13 Link definition interfaces](https://www.php-fig.org/psr/psr-13/) and added to it additional methods:

```
interface WebLinkInterface extends LinkInterface
{
    // Returns the HTML tag which contains the link.
    public function getTag(): string;

    // For paired tags returns the HTML content between link open and close tags.
    public function getContent(): string;

    // Returns the attribute value or null, if attribute not exist.
    public function getAttribute(string $attr): string|int|float|bool|array|null;
}
```

```
interface EvolvableWebLinkInterface extends EvolvableLinkInterface, WebLinkInterface
{
    // Returns an instance with the specified tag.
    public function withTag(string $tag): static;

    // Returns an instance with the specified content.
    public function withContent(string $content): static;
}
```

Trivial realisation of WebLink component based on Symfony WebLink component

```
use Symfony\Component\WebLink\Link;
class WebLink extends Link implements EvolvableWebLinkInterface
{
// ...
}
```

### License

[](#license)

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

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity51

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

Total

3

Last Release

717d ago

### 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 (3 commits)")

---

Tags

httpurluriweblinkpsr-13http2psr13weblink

### Embed Badge

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

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

###  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)
