# 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

Repository: https://github.com/php-fig/http-message
Canonical: https://ross.abutalabs.com/products/http-message
Homepage: https://www.php-fig.org/psr/psr-7/
Language: PHP
License: MIT
License Family: permissive
Topics: psr, php, php-fig, http
Last push: 2023-09-21T14:12:32+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4467, "days_push": 1077, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 7033, forks 186 (observed 2026-08-28T04:09:55.129333+00:00)

## What it is
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
- artifact type: library
- maturity: stable
- function: http-client, http-server, middleware
- domain: web-development, apis, backend
- platform: php
- tags: psr-7, http-message, interfaces, interoperability, standards

## Member repositories
- php-fig/http-message (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:55.129333+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:40:34.735045+00:00, confidence not recorded.
  - readme: https://github.com/php-fig/http-message (fetched 2026-08-28T04:09:55.129333+00:00, sha 4cd6339fa85e)
  - homepage: https://www.php-fig.org/psr/psr-7/ (fetched 2026-08-29T08:36:22.667393+00:00, sha bdf3ebc20311)
  - site_page: https://www.php-fig.org/faqs (fetched 2026-08-29T08:36:22.678019+00:00, sha a652ee5a57f9)
- Data as of 2026-08-30T08:39:29.467469+00:00.
