# php-http/discovery

Finds installed clients and message factories

Repository: https://github.com/php-http/discovery
Canonical: https://ross.abutalabs.com/products/php-http-discovery
Homepage: http://php-http.org
Language: PHP
License: MIT
License Family: permissive
Last push: 2025-12-10T16:44:50+00:00

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

## Adoption (not part of the score)
Stars 1324, forks 47 (observed 2026-08-28T04:04:22.421114+00:00)

## What it is
A PHP library that auto-discovers installed PSR-17, PSR-18, and HTTPlug HTTP client and message factory implementations, with a Composer plugin that can auto-install them. It lets library authors code against standard interfaces without forcing a specific HTTP implementation on their users.

## Use cases
- find installed psr-18 http client in a php project
- auto-discover psr-17 response factory implementation
- write an sdk without forcing a specific http client on users
- resolve between guzzle and nyholm psr7 implementations
- auto-install http client dependencies via composer plugin

## When to choose
- you are a PHP library or SDK author who needs an HTTP client without hard dependency on a specific implementation
- your project may contain multiple PSR-7/17/18 implementations and needs deterministic selection
- you want Composer to automatically install a missing HTTP implementation

## When to avoid
- your application already directly depends on one specific HTTP client and needs no abstraction
- you are not working in the PHP/Composer ecosystem
- you need an actual HTTP client rather than discovery of one

## Facets
- artifact type: library
- maturity: stable
- function: http-client, middleware, developer-tools
- domain: developer-tools, web-development, apis
- platform: php, cli
- tags: psr-7, psr-17, psr-18, httplug, composer-plugin, auto-discovery, dependency-management

## Member repositories
- php-http/discovery (main) score 48

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:22.421114+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-30T04:47:01.696350+00:00, confidence not recorded.
  - readme: https://github.com/php-http/discovery (fetched 2026-08-28T04:04:22.421114+00:00, sha 6ca83f2352d3)
- Data as of 2026-08-30T08:39:29.467469+00:00.
