PHPackages                             tiagohillebrandt/php-parse-link-header - 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. tiagohillebrandt/php-parse-link-header

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

tiagohillebrandt/php-parse-link-header
======================================

Parses the Link HTTP header and returns the values as an array.

1.0.4(6y ago)754.0k↓23%11MITPHPPHP &gt;=7.2

Since Apr 15Pushed 6y ago1 watchersCompare

[ Source](https://github.com/tiagohillebrandt/php-parse-link-header)[ Packagist](https://packagist.org/packages/tiagohillebrandt/php-parse-link-header)[ Docs](https://github.com/tiagohillebrandt/php-parse-link-header)[ RSS](/packages/tiagohillebrandt-php-parse-link-header/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (6)Used By (1)

tiagohillebrandt/php-parse-link-header
======================================

[](#tiagohillebrandtphp-parse-link-header)

Parse the HTTP Link header and return the values as an array.

Installation with Composer
--------------------------

[](#installation-with-composer)

```
$ composer require tiagohillebrandt/php-parse-link-header
```

Usage
-----

[](#usage)

```
$headers = [
    'Link' => '; rel="next", ; rel="last"',
];

$links = ( new TiagoHillebrandt\ParseLinkHeader( $headers['Link'] ) )->toArray();

print_r( $links );
```

The above example will output:

```
Array
(
    [next] => Array
        (
            [link] => https://api.github.com/organizations/xyz/repos?page=2
            [page] => 2
        )

    [last] => Array
        (
            [link] => https://api.github.com/organizations/xyz/repos?page=4
            [page] => 4
        )

)

```

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity35

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity55

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

5

Last Release

2224d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4158eb724a262e112aef1614bdd118b9f240f1dab3508a6566ba393dc8221a97?d=identicon)[tiagohillebrandt](/maintainers/tiagohillebrandt)

---

Top Contributors

[![tiagohillebrandt](https://avatars.githubusercontent.com/u/1733911?v=4)](https://github.com/tiagohillebrandt "tiagohillebrandt (8 commits)")

---

Tags

linkheadergithubparse

### Embed Badge

![Health badge](/badges/tiagohillebrandt-php-parse-link-header/health.svg)

```
[![Health](https://phpackages.com/badges/tiagohillebrandt-php-parse-link-header/health.svg)](https://phpackages.com/packages/tiagohillebrandt-php-parse-link-header)
```

###  Alternatives

[psr/link

Common interfaces for HTTP links

2.5k144.1M68](/packages/psr-link)[symfony/web-link

Manages links between resources

1.4k99.0M251](/packages/symfony-web-link)[fig/link-util

Common utility implementations for HTTP links

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

Crawl all internal links found on a website

2.8k16.3M52](/packages/spatie-crawler)[bepsvpt/secure-headers

Add security related headers to HTTP response. The package includes Service Providers for easy Laravel integration.

5484.7M9](/packages/bepsvpt-secure-headers)[marcelgwerder/laravel-api-handler

Package providing helper functions for a Laravel REST-API

16092.6k](/packages/marcelgwerder-laravel-api-handler)

PHPackages © 2026

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