PHPackages                             ralouphie/getallheaders - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. ralouphie/getallheaders

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

ralouphie/getallheaders
=======================

A polyfill for getallheaders.

3.0.3(7y ago)3.8k872.8M—3.3%35[2 PRs](https://github.com/ralouphie/getallheaders/pulls)20MITPHPPHP &gt;=5.6

Since Jun 3Pushed 6y ago12 watchersCompare

[ Source](https://github.com/ralouphie/getallheaders)[ Packagist](https://packagist.org/packages/ralouphie/getallheaders)[ RSS](/packages/ralouphie-getallheaders/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelogDependencies (2)Versions (15)Used By (20)

getallheaders
=============

[](#getallheaders)

PHP `getallheaders()` polyfill. Compatible with PHP &gt;= 5.3.

[![Build Status](https://camo.githubusercontent.com/18d16d76d26c13cc47d76280b79c6ae92f5a410e7fd0a8e80b7ff154e160fb43/68747470733a2f2f7472617669732d63692e6f72672f72616c6f75706869652f676574616c6c686561646572732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/ralouphie/getallheaders)[![Coverage Status](https://camo.githubusercontent.com/c97d77220766f7dafe1ff3dc56070af9ccd18a96a0c9dd69f0b140f146f52667/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f72616c6f75706869652f676574616c6c686561646572732f62616467652e706e673f6272616e63683d6d6173746572)](https://coveralls.io/r/ralouphie/getallheaders?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/42603c0eff93d95b8c4c88b8d5f774d71ac4c853b4124d59039aa809fd2bdc46/68747470733a2f2f706f7365722e707567782e6f72672f72616c6f75706869652f676574616c6c686561646572732f762f737461626c652e706e67)](https://packagist.org/packages/ralouphie/getallheaders)[![Latest Unstable Version](https://camo.githubusercontent.com/03c4baf29ccd08960003735005a491b49452fedbc6f8f5f348c7a4800eb175e8/68747470733a2f2f706f7365722e707567782e6f72672f72616c6f75706869652f676574616c6c686561646572732f762f756e737461626c652e706e67)](https://packagist.org/packages/ralouphie/getallheaders)[![License](https://camo.githubusercontent.com/39cb4a9decad177986c945fd1bc6a055d191749f98bfa67bd23af5525c132021/68747470733a2f2f706f7365722e707567782e6f72672f72616c6f75706869652f676574616c6c686561646572732f6c6963656e73652e706e67)](https://packagist.org/packages/ralouphie/getallheaders)

This is a simple polyfill for [`getallheaders()`](http://www.php.net/manual/en/function.getallheaders.php).

Install
-------

[](#install)

For PHP version **`>= 5.6`**:

```
composer require ralouphie/getallheaders

```

For PHP version **`< 5.6`**:

```
composer require ralouphie/getallheaders "^2"

```

###  Health Score

55

—

FairBetter than 98% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity82

Widely adopted with strong download metrics

Community37

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 85.7% 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 ~158 days

Recently: every ~280 days

Total

12

Last Release

2629d ago

Major Versions

0.1.7 → 1.0.02016-01-29

1.0.0 → 2.0.02016-02-11

2.0.5 → 3.0.02018-12-06

PHP version history (2 changes)0.1.7PHP &gt;=5.3

3.0.0PHP &gt;=5.6

### Community

Maintainers

![](https://www.gravatar.com/avatar/7ce8cce0a2c987cbcfda65638dd5182c41eb7b1bb2271b2aad1660e173a38bc2?d=identicon)[ralouphie](/maintainers/ralouphie)

---

Top Contributors

[![ralouphie](https://avatars.githubusercontent.com/u/1500005?v=4)](https://github.com/ralouphie "ralouphie (36 commits)")[![reedy](https://avatars.githubusercontent.com/u/67615?v=4)](https://github.com/reedy "reedy (3 commits)")[![gmponos](https://avatars.githubusercontent.com/u/5675248?v=4)](https://github.com/gmponos "gmponos (1 commits)")[![GrahamCampbell](https://avatars.githubusercontent.com/u/2829600?v=4)](https://github.com/GrahamCampbell "GrahamCampbell (1 commits)")[![peter279k](https://avatars.githubusercontent.com/u/9021747?v=4)](https://github.com/peter279k "peter279k (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ralouphie-getallheaders/health.svg)

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

PHPackages © 2026

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