PHPackages                             httpsoft/http-message - 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. httpsoft/http-message

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

httpsoft/http-message
=====================

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

1.1.6(2y ago)85997.3k↓41.6%520MITPHPPHP ^7.4|^8.0CI passing

Since Aug 23Pushed 1y ago3 watchersCompare

[ Source](https://github.com/httpsoft/http-message)[ Packagist](https://packagist.org/packages/httpsoft/http-message)[ Docs](https://httpsoft.org/)[ RSS](/packages/httpsoft-http-message/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (10)Dependencies (6)Versions (21)Used By (20)Security (1)

HTTP Message
============

[](#http-message)

[![License](https://camo.githubusercontent.com/ed5d44ecbaba91306a3d0f30fafd24f18313265e73dd7ffd124943ef7a0a763c/68747470733a2f2f706f7365722e707567782e6f72672f68747470736f66742f687474702d6d6573736167652f6c6963656e7365)](https://packagist.org/packages/httpsoft/http-message)[![Latest Stable Version](https://camo.githubusercontent.com/111e9b8eb452e61a2b642164a2ab4adfce8c8a4764e3b9be5fd113dbba9d63fa/68747470733a2f2f706f7365722e707567782e6f72672f68747470736f66742f687474702d6d6573736167652f76)](https://packagist.org/packages/httpsoft/http-message)[![Total Downloads](https://camo.githubusercontent.com/2002f71a966e821cc2f5f790bc8b1f87f4a986d5dd161f5ee51a741e5d19a409/68747470733a2f2f706f7365722e707567782e6f72672f68747470736f66742f687474702d6d6573736167652f646f776e6c6f616473)](https://packagist.org/packages/httpsoft/http-message)[![GitHub Build Status](https://github.com/httpsoft/http-message/workflows/build/badge.svg)](https://github.com/httpsoft/http-message/actions)[![GitHub Static Analysis Status](https://github.com/httpsoft/http-message/workflows/static/badge.svg)](https://github.com/httpsoft/http-message/actions)[![Scrutinizer Code Coverage](https://camo.githubusercontent.com/80721cf7abfb98d5039f8a937bf950ca34f101f01b493a849e9fe367767e25e1/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f68747470736f66742f687474702d6d6573736167652f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/httpsoft/http-message/?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/0823d7658d9399fdd0ad4ea4c0cbc1c210f07de7d8bb7b8c7ba0ab8b2df0e392/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f68747470736f66742f687474702d6d6573736167652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/httpsoft/http-message/?branch=master)

This package is a lightweight, fast, high-performance and strict implementation of the [PSR-7 HTTP Message](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-7-http-message.md) and [PSR-17 HTTP Factories](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-17-http-factory.md).

The package does not contain any additional functionality other than that defined in the PSR interfaces.

Documentation
-------------

[](#documentation)

- [In English language](https://httpsoft.org/docs/message).
- [In Russian language](https://httpsoft.org/ru/docs/message).

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

[](#installation)

This package requires PHP version 7.4 or later.

```
composer require httpsoft/http-message

```

Benchmark
---------

[](#benchmark)

Runs: 30,000GuzzleHttpSoftLaminasNyholmSlimRuns per second1586819544122571902212117Average time per run0.0630 ms0.0512 ms0.0816 ms0.0526 ms0.0825 msTotal time1.8905 s1.5349 s2.4474 s1.5771 s2.4757 sSee benchmark at .

Usage
-----

[](#usage)

> For a description of how to use the package components, see the [PSR-7](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-7-http-message.md) and [PSR-17](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-17-http-factory.md) specifications and [package documentation](https://httpsoft.org/docs/message).

For the convenience of creating requests to the server from PHP superglobals, you can use the [httpsoft/http-server-request](https://github.com/httpsoft/http-server-request) package.

```
composer require httpsoft/http-server-request

```

You can use the [httpsoft/http-runner](https://github.com/httpsoft/http-runner) package to run requests to the server and emit responses, as well as build the [PSR-15](https://github.com/php-fig/http-server-middleware) middleware pipelines.

```
composer require httpsoft/http-runner

```

###  Health Score

50

—

FairBetter than 95% of packages

Maintenance33

Infrequent updates — may be unmaintained

Popularity52

Moderate usage in the ecosystem

Community35

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 85% 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 ~76 days

Recently: every ~66 days

Total

20

Last Release

739d ago

### Community

Maintainers

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

---

Top Contributors

[![devanych](https://avatars.githubusercontent.com/u/20116244?v=4)](https://github.com/devanych "devanych (91 commits)")[![samdark](https://avatars.githubusercontent.com/u/47294?v=4)](https://github.com/samdark "samdark (10 commits)")[![vjik](https://avatars.githubusercontent.com/u/525501?v=4)](https://github.com/vjik "vjik (2 commits)")[![SerafimArts](https://avatars.githubusercontent.com/u/2461257?v=4)](https://github.com/SerafimArts "SerafimArts (1 commits)")[![roxblnfk](https://avatars.githubusercontent.com/u/4152481?v=4)](https://github.com/roxblnfk "roxblnfk (1 commits)")[![Enjoyzz](https://avatars.githubusercontent.com/u/1448659?v=4)](https://github.com/Enjoyzz "Enjoyzz (1 commits)")[![arogachev](https://avatars.githubusercontent.com/u/8326201?v=4)](https://github.com/arogachev "arogachev (1 commits)")

---

Tags

httphttp-messagephppsr-17psr-7request-responsehttppsr-7http-messagephppsr-17

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/httpsoft-http-message/health.svg)

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

###  Alternatives

[guzzlehttp/psr7

PSR-7 message implementation that also provides common utility methods

7.9k1.1B4.4k](/packages/guzzlehttp-psr7)[symfony/psr-http-message-bridge

PSR HTTP message bridge

1.3k329.9M1.1k](/packages/symfony-psr-http-message-bridge)[tempest/framework

The PHP framework that gets out of your way.

2.3k37.6k21](/packages/tempest-framework)[phpro/http-tools

HTTP tools for developing more consistent HTTP implementations.

28153.9k](/packages/phpro-http-tools)[flow-php/flow

PHP ETL - Extract Transform Load - Data processing framework

86337.5k](/packages/flow-php-flow)[sunrise/http-router

A powerful solution as the foundation of your project.

16852.3k12](/packages/sunrise-http-router)

PHPackages © 2026

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