# WordPress/Requests

Requests for PHP is a humble HTTP request library. It simplifies how you interact with other sites and takes away all your worries.

Repository: https://github.com/WordPress/Requests
Canonical: https://ross.abutalabs.com/products/wordpress-requests
Homepage: https://requests.ryanmccue.info/
Language: PHP
License: NOASSERTION
License Family: other
Topics: php, http, http-client, curl, php-curl
Last push: 2026-08-13T04:58:34+00:00

## Health v2 (maintenance only)
Score: 92/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 97, release rhythm 82, longevity 100
- inputs: {"age_days": 5321, "days_push": 20, "days_rel": 43, "gap_med": 62.5, "n_releases_24m": 7}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3574, forks 502 (observed 2026-08-28T04:08:10.785665+00:00)

## What it is
Requests for PHP is a dependency-free HTTP request library with a simple, Python-requests-inspired API. It abstracts over cURL and fsockopen to provide consistent GET/POST/PUT/DELETE/PATCH/HEAD requests with authentication, SSL verification, and automatic decompression.

## Use cases
- make HTTP requests in PHP without touching cURL directly
- call REST APIs from a PHP application
- send POST requests with form data or multipart files
- add basic or digest authentication to outgoing requests
- fetch remote URLs with SSL verification and timeouts
- handle internationalized domain names in HTTP calls

## When to choose
- you need a simple, zero-dependency PHP HTTP client
- you cannot rely on cURL being available and want a fsockopen fallback
- you want a consistent API across PHP projects, including WordPress ecosystems
- you need quick GET/POST calls with headers, auth, and timeouts

## When to avoid
- you need async, streaming, or HTTP/2/3 features offered by Guzzle or PSR-18 clients
- you are building a framework that requires PSR-7/PSR-18 interoperability
- you need advanced middleware or promise-based concurrency

## Facets
- artifact type: library
- maturity: stable
- function: http-client
- domain: web-development, apis, developer-tools
- platform: php
- tags: curl, http-requests, zero-dependency, wordpress

## Member repositories
- WordPress/Requests (main) score 92

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:10.785665+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-29T18:34:03.635556+00:00, confidence not recorded.
  - readme: https://github.com/WordPress/Requests (fetched 2026-08-28T04:08:10.785665+00:00, sha 9686e9641895)
  - homepage: https://requests.ryanmccue.info/ (fetched 2026-08-29T09:27:37.875925+00:00, sha 67406fc51d42)
  - site_page: https://requests.ryanmccue.info/docs (fetched 2026-08-29T09:27:37.878565+00:00, sha fac2cd4e8c24)
  - site_page: https://requests.ryanmccue.info/api-2.x/classes/WpOrg-Requests-Requests.html (fetched 2026-08-29T09:27:37.880385+00:00, sha 8d2616ff485c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
