# symfony/http-client

Provides powerful methods to fetch HTTP resources synchronously or asynchronously

Repository: https://github.com/symfony/http-client
Canonical: https://ross.abutalabs.com/products/http-client
Homepage: https://symfony.com/http-client
Language: PHP
License: MIT
License Family: permissive
Topics: php, symfony, component, http, symfony-component
Last push: 2026-08-25T14:25:57+00:00

## Health v2 (maintenance only)
Score: 95/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 99, release rhythm 87, longevity 100
- inputs: {"age_days": 2736, "days_push": 8, "days_rel": 11, "gap_med": 0, "n_releases_24m": 92}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2030, forks 53 (observed 2026-08-28T04:06:07.233473+00:00)

## What it is
Symfony HttpClient is a PHP component providing a low-level HTTP client with support for both PHP stream wrappers and cURL. It fetches HTTP resources synchronously or asynchronously, with features like concurrent requests, streaming responses, retries, and SSRF protection.

## Use cases
- make http requests in php
- consume rest apis from php
- fetch urls asynchronously
- send concurrent http requests
- stream large http responses
- retry failed http requests
- consume server-sent events in php

## When to choose
- you're building a PHP or Symfony app that calls external APIs
- you need async or concurrent HTTP requests with multiplexing
- you want PSR-18/HTTPlug interoperability with built-in testing tools

## When to avoid
- you're not working in PHP
- you need a full-featured GUI HTTP client like Postman
- your framework already mandates a different HTTP client

## Facets
- artifact type: library
- maturity: stable
- function: http-client
- domain: web-development, backend, apis, developer-tools
- platform: php
- tags: symfony-component, async-http, curl, psr-18, http2, streaming

## Member repositories
- symfony/http-client (main) score 95

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:07.233473+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-30T02:59:36.174228+00:00, confidence not recorded.
  - readme: https://github.com/symfony/http-client (fetched 2026-08-28T04:06:07.233473+00:00, sha 28458283abb2)
  - homepage: https://symfony.com/http-client (fetched 2026-08-29T10:39:31.218016+00:00, sha f59eb46df099)
  - site_page: https://symfony.com/doc (fetched 2026-08-29T10:39:31.220240+00:00, sha 44889134f4fb)
  - site_page: https://symfony.com/doc/current/http_client.html (fetched 2026-08-29T10:39:31.222143+00:00, sha 683193800162)
  - site_page: https://symfony.com/projects/phpmyfaq (fetched 2026-08-29T10:39:31.225887+00:00, sha c4d94e184466)
  - site_page: https://symfony.com/releases (fetched 2026-08-29T10:39:31.227454+00:00, sha 5bd749e2b676)
  - site_page: https://symfony.com/blog/category/releases (fetched 2026-08-29T10:39:31.229674+00:00, sha 5928e60cd226)
- Data as of 2026-08-30T08:39:29.467469+00:00.
