PHPackages                             10up/http - 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. 10up/http

AbandonedArchivedWordpress-library[HTTP &amp; Networking](/categories/http)

10up/http
=========

HTTP Header wrapper.

1.0.0(11y ago)21803MITPHP

Since Oct 30Pushed 11y ago11 watchersCompare

[ Source](https://github.com/10up/HTTP)[ Packagist](https://packagist.org/packages/10up/http)[ Docs](https://github.com/10up/http)[ RSS](/packages/10up-http/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (4)Versions (2)Used By (0)

HTTP
====

[](#http)

HTTP Header wrapper.

Purpose
-------

[](#purpose)

The objective of this library is to provide a test-ready alternative to PHP's default `header()` interface. Instead of sending headers directly, you can add them to PHP using this library. Additionally, you can easily mock this library in your own projects to fully decouple code from PHP primitives.

Installation
------------

[](#installation)

This module can be easily installed by adding `10up/http` to your `composer.json` file. Then, either autoload your Composer dependencies or manually `include()` the `HTTP.php` bootstrap file.

Use
---

[](#use)

Rather than invoking PHP's `header()` method directly, simply call `\TenUp\HTTP\v1_0_0\add()` to add new headers. This allows you to specify a key, a value, and flag whether or not to overwrite existing values.

All headers loaded into the system will be sent to the browser when WordPress invokes it's usual `send_headers` action; there is no other work you need to do on your own.

Changelog
---------

[](#changelog)

### 1.0

[](#10)

- First public release

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 75% 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

Unknown

Total

1

Last Release

4265d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3358927?v=4)[10up](/maintainers/10up)[@10up](https://github.com/10up)

![](https://avatars.githubusercontent.com/u/1844351?v=4)[Taylor Lovett](/maintainers/tlovett1)[@tlovett1](https://github.com/tlovett1)

---

Top Contributors

[![ericmann](https://avatars.githubusercontent.com/u/605474?v=4)](https://github.com/ericmann "ericmann (9 commits)")[![johnpbloch](https://avatars.githubusercontent.com/u/446833?v=4)](https://github.com/johnpbloch "johnpbloch (3 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/10up-http/health.svg)

```
[![Health](https://phpackages.com/badges/10up-http/health.svg)](https://phpackages.com/packages/10up-http)
```

###  Alternatives

[php-http/cache-plugin

PSR-6 Cache plugin for HTTPlug

25126.1M82](/packages/php-http-cache-plugin)[illuminate/http

The Illuminate Http package.

11937.9M6.9k](/packages/illuminate-http)[rdkafka/rdkafka

A PHP extension for Kafka

2.2k24.3k1](/packages/rdkafka-rdkafka)[httpsoft/http-message

Strict and fast implementation of PSR-7 and PSR-17

87965.9k114](/packages/httpsoft-http-message)[mezzio/mezzio-router

Router subcomponent for Mezzio

265.4M92](/packages/mezzio-mezzio-router)[serpapi/google-search-results-php

Get Google, Bing, Baidu, Ebay, Yahoo, Yandex, Home depot, Naver, Apple, Duckduckgo, Youtube search results via SerpApi.com

69127.2k](/packages/serpapi-google-search-results-php)

PHPackages © 2026

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