php-fig/http-message
The purpose of this PSR is to provide a set of common interfaces for HTTP messages as described in RFC 7230 and RFC 7231 observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4467
- days_rel: n/a
- days_push: 1077
- n_releases_24m: 0
Adoption not part of the score
7033 stars · 186 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
PSR-7 provides a set of common PHP interfaces for representing HTTP messages (requests and responses) as described in RFC 7230/7231, plus URI interfaces per RFC 3986. It contains no implementation itself; it exists so HTTP libraries and frameworks can interoperate.
Use cases
- standardize http request and response objects across php frameworks
- write framework-agnostic php middleware
- build an http client library compatible with psr-7
- type-hint http messages in shared php packages
- decouple application code from a specific framework's http layer
When to choose
- you are building reusable php packages or middleware that must work across frameworks
- you want interoperability with the broader php http ecosystem (guzzle, slim, nyholm/psr7, etc.)
- you need stable, standardized interfaces for http messages
When to avoid
- you need an actual working http client or server implementation rather than interfaces
- your project does not follow psr standards and has its own http abstractions
- you are not working in php
Facets
library · maturity stable
http-client http-server middleware web-development apis backend php psr-7 http-message interfaces interoperability standards
3 sources
- readme: https://github.com/php-fig/http-message · fetched 2026-08-28 · 4cd6339fa85e
- homepage: https://www.php-fig.org/psr/psr-7/ · fetched 2026-08-29 · bdf3ebc20311
- site_page: https://www.php-fig.org/faqs · fetched 2026-08-29 · a652ee5a57f9
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| php-fig/http-message | main | 23 |
For agents
markdown · JSON · MCP: product_card(name="php-fig/http-message")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem