PHPackages                             pear/http2 - 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. pear/http2

ActiveLibrary

pear/http2
==========

Miscellaneous HTTP utilities

v2.0.0(3y ago)12156.2k—3.3%23BSD-2-ClausePHP

Since Aug 10Pushed 3y ago5 watchersCompare

[ Source](https://github.com/pear/HTTP2)[ Packagist](https://packagist.org/packages/pear/http2)[ Docs](http://pear.php.net/package/HTTP2)[ RSS](/packages/pear-http2/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (3)Used By (3)

HTTP2 - Miscellaneous HTTP utilities
====================================

[](#http2---miscellaneous-http-utilities)

Static methods for doing miscellaneous HTTP related stuff like date formatting, language negotiation or HTTP redirection.

Features
--------

[](#features)

- Language negotiation
- MIME type negotiation
- Charset negotiation
- Send HEAD requests to URLs
- Make URLs absolute
- Parse HTTP `Link:` header values (RFC 5988)

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

[](#installation)

```
$ composer require pear/http2
```

Usage
-----

[](#usage)

### Language negotiation

[](#language-negotiation)

Quality factors in the `Accept-Language:` header are supported, e.g.:

```
Accept-Language: en-UK;q=0.7, en-US;q=0.6, no, dk;q=0.8
```

Code:

```

```

### Charset negotiation

[](#charset-negotiation)

```

```

### MIME type negotiation

[](#mime-type-negotiation)

```

```

Links
-----

[](#links)

HomepageBug tracker[http://pear.php.net/bugs/search.php?cmd=display&amp;package\_name\[\]=HTTP2](http://pear.php.net/bugs/search.php?cmd=display&package_name[]=HTTP2)DocumentationUnit test status

[![https://travis-ci.org/pear/HTTP2.svg?branch=master](https://camo.githubusercontent.com/5ec9cea0d2e52f30041ce59fa434d8eef64176f7434bc10fdc82a493395c8a42/68747470733a2f2f7472617669732d63692e6f72672f706561722f48545450322e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/pear/HTTP2)Packagist

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity40

Moderate usage in the ecosystem

Community25

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Total

2

Last Release

1153d ago

Major Versions

v1.1.2 → v2.0.02023-03-22

### Community

Maintainers

![](https://www.gravatar.com/avatar/1323714f58f9144af310e5e4217e61b96ad7c42bc5c93a1f2d97deca95f6f4f8?d=identicon)[ashnazg](/maintainers/ashnazg)

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

---

Top Contributors

[![m6w6](https://avatars.githubusercontent.com/u/1265282?v=4)](https://github.com/m6w6 "m6w6 (47 commits)")[![cweiske](https://avatars.githubusercontent.com/u/59036?v=4)](https://github.com/cweiske "cweiske (19 commits)")[![stigsb](https://avatars.githubusercontent.com/u/169939?v=4)](https://github.com/stigsb "stigsb (11 commits)")[![pierrejoye](https://avatars.githubusercontent.com/u/282408?v=4)](https://github.com/pierrejoye "pierrejoye (7 commits)")[![mj](https://avatars.githubusercontent.com/u/5277?v=4)](https://github.com/mj "mj (6 commits)")[![CloCkWeRX](https://avatars.githubusercontent.com/u/365751?v=4)](https://github.com/CloCkWeRX "CloCkWeRX (4 commits)")[![till](https://avatars.githubusercontent.com/u/27003?v=4)](https://github.com/till "till (2 commits)")[![tvvcox](https://avatars.githubusercontent.com/u/743820?v=4)](https://github.com/tvvcox "tvvcox (2 commits)")[![sebastianbergmann](https://avatars.githubusercontent.com/u/25218?v=4)](https://github.com/sebastianbergmann "sebastianbergmann (1 commits)")[![hadimansouri](https://avatars.githubusercontent.com/u/8458562?v=4)](https://github.com/hadimansouri "hadimansouri (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/pear-http2/health.svg)

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

PHPackages © 2026

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