# php-fig/http-client

Repository: https://github.com/php-fig/http-client
Canonical: https://ross.abutalabs.com/products/php-fig-http-client
Language: PHP
License: MIT
License Family: permissive
Last push: 2023-09-23T14:18:08+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": 3240, "days_push": 1075, "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 1721, forks 17 (observed 2026-08-28T04:05:27.711811+00:00)

## What it is
The official PHP-FIG repository holding the PSR-18 HTTP Client specification interfaces. It provides only abstractions (interfaces), not an actual HTTP client implementation.

## Use cases
- decouple my code from a specific http client library
- build an http client that conforms to psr-18
- type-hint against a standard http client interface in php
- find psr-18 compliant http client implementations
- write library code that works with any psr-18 http client

## When to choose
- you are writing a reusable PHP library that needs to send HTTP requests without depending on a specific client
- you are implementing a PSR-18 compliant HTTP client
- you want interoperability with the PHP-FIG ecosystem

## When to avoid
- you need an actual working HTTP client to make requests (use Guzzle, Symfony HttpClient, or another PSR-18 implementation)
- your project does not follow PSR standards

## Facets
- artifact type: library
- maturity: stable
- function: http-client, sdk
- domain: web-development, apis, developer-tools
- platform: php
- tags: psr-18, interfaces, standards, abstraction

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

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:27.711811+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-30T03:34:02.860295+00:00, confidence not recorded.
  - readme: https://github.com/php-fig/http-client (fetched 2026-08-28T04:05:27.711811+00:00, sha 2864b8d92262)
- Data as of 2026-08-30T08:39:29.467469+00:00.
