# ralouphie/getallheaders

PHP getallheaders polyfill

Repository: https://github.com/ralouphie/getallheaders
Canonical: https://ross.abutalabs.com/products/getallheaders
Language: PHP
License: MIT
License Family: permissive
Last push: 2019-12-20T12:00:57+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 4475, "days_push": 2448, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3778, forks 35 (observed 2026-08-28T04:08:18.327561+00:00)

## What it is
A PHP polyfill for the getallheaders() function, compatible with PHP >= 5.3. It provides access to all HTTP request headers on servers where the native function is unavailable (e.g., non-Apache or FastCGI setups).

## Use cases
- read all HTTP request headers in PHP on nginx or FastCGI
- polyfill getallheaders on PHP < 7.3
- access request headers in a framework without header support
- portable header parsing across PHP server APIs

## When to choose
- you need getallheaders() on PHP versions or SAPIs where it is missing
- you want a tiny, dependency-free Composer package

## When to avoid
- you run PHP >= 7.3 where getallheaders is built in for most SAPIs
- you use a framework like Symfony or Laravel that already abstracts request headers

## Facets
- artifact type: library
- maturity: maintenance
- function: http-server, developer-tools
- domain: web-development, backend, developer-tools
- platform: php
- tags: polyfill, http-headers, composer

## Member repositories
- ralouphie/getallheaders (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:18.327561+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:27:48.038962+00:00, confidence not recorded.
  - readme: https://github.com/ralouphie/getallheaders (fetched 2026-08-28T04:08:18.327561+00:00, sha a5a015ade842)
- Data as of 2026-08-30T08:39:29.467469+00:00.
