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.

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 51 minutes ago
Added to GitGenius on September 19th, 2026
Created on February 7th, 2012
Open Issues & Pull Requests: 126 (+0)
GitHub issues: Enabled
Number of forks: 500
Total Stargazers: 3,575 (+0)
Total Subscribers: 118 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 41.0 days
Mean response time: 131.9 days
90th percentile: 576.3 days
Tracked items: 19

Most active contributors

Sign in to see contributor activity.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 15
New in 7 days: 1
Closed in 7 days: 0
Avg open age: 557 days
Stale 30+ days: 10
Stale 90+ days: 8

Recent activity

Opened in 7 days: 1
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • Type: meta (11)
  • Type: testing/chores/QA (7)
  • Status: help wanted (3)
  • Component: Transports (2)
  • Type: documentation (2)
  • Component: Core (1)
  • Status: invalid (1)
  • Type: bug (1)

Detailed Description

Requests for PHP is an HTTP client library that simplifies sending and receiving HTTP requests in PHP applications.

PHP's built-in HTTP tools are cumbersome and unreliable. The cURL extension has an unintuitive API, and sockets require developers to manually parse HTTP responses. Requests solves this by providing a clean, human-friendly interface inspired by the Python Requests library. It abstracts away the complexity of cURL and fsockopen, automatically selecting whichever is available on the system, and handles common tasks like authentication, SSL verification, decompression, and timeouts transparently. Developers can send HEAD, GET, POST, PUT, DELETE, and PATCH requests using simple arrays for headers, form data, and parameters, then access responses in the same straightforward manner.

Requests suits any PHP project that needs to interact with external HTTP APIs or services. It requires only PHP 5.6.20 or later and has no external dependencies, making it lightweight and easy to integrate. The library can be installed via Composer or manually from source. The README notes that while PSR-7 and PSR-18 standards were created after Requests, the library does not natively implement them, though a separate community package provides PSR-18 compatibility if needed.

The project maintains comprehensive PHPDoc documentation across its entire codebase and strives for complete test coverage with an extensive test suite. Contributions are actively welcomed through established guidelines.