PHPackages                             ivoba/headers - 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. ivoba/headers

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

ivoba/headers
=============

A PHP library for working with HTTP and mail message headers

3.0.0(3y ago)552.0k↓50%1PHPPHP &gt;=8.1

Since Apr 4Pushed 3y ago1 watchersCompare

[ Source](https://github.com/ivoba/headers)[ Packagist](https://packagist.org/packages/ivoba/headers)[ RSS](/packages/ivoba-headers/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (6)Used By (0)

headers
=======

[](#headers)

A PHP library for working with HTTP and mail headers

[![Build Status](https://camo.githubusercontent.com/41ef2a086935a40bf935ace35eeac4bbf720080a259b94e457047feaee7e031b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f69766f62612f686561646572732f746573742e796d6c3f7374796c653d666c61742d737175617265)](https://github.com/ivoba/headers/actions)

Install
-------

[](#install)

```
composer require ivoba/headers

```

Version 2 requires minimum PHP7.1.

Usage
-----

[](#usage)

```
$headers = Headers::fromString(
'HTTP/1.1 200 OK
 Content-Length: 782420
 Content-Type: text/xml; charset=utf-8
 Server: Microsoft-HTTPAPI/2.0
 Date: Tue, 28 Nov 2017 16:08:41 GMT'
);

$reason = $headers->getStatusLine()->get(StatusLine::REASON_PHRASE); //OK
$server = $headers->getHeaders()->get('server'); //Microsoft-HTTPAPI/2.0

```

Tests
-----

[](#tests)

Install the dependencies via composer and run

```
vendor/bin/phpunit

```

### Credits

[](#credits)

This is a shameless port of  which seems to be unmaintained.

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity76

Established project with proven stability

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

Total

5

Last Release

1158d ago

Major Versions

1.1.0 → v2.0.02017-12-04

2.1.0 → 3.0.02023-03-17

PHP version history (4 changes)1.0.0PHP &gt;=5.3

v2.0.0PHP &gt;=7.1

2.1.0PHP &gt;=7.1, &lt; 8

3.0.0PHP &gt;=8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/a281e7f725fbe1ea8de5835c34e19c649afe33c2a1fbf48188ccff1274165fb1?d=identicon)[ivoba](/maintainers/ivoba)

---

Top Contributors

[![ivoba](https://avatars.githubusercontent.com/u/471254?v=4)](https://github.com/ivoba "ivoba (17 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ivoba-headers/health.svg)

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

###  Alternatives

[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M319](/packages/friendsofsymfony-rest-bundle)[php-http/discovery

Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations

1.3k309.5M1.2k](/packages/php-http-discovery)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M293](/packages/pusher-pusher-php-server)[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78026.4M414](/packages/react-http)[php-http/curl-client

PSR-18 and HTTPlug Async client with cURL

48347.0M384](/packages/php-http-curl-client)[smi2/phpclickhouse

PHP ClickHouse Client

84310.1M71](/packages/smi2-phpclickhouse)

PHPackages © 2026

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