awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com

PHP HTTP Client Libraries

Ranking updated Jul 13, 2026

For a php library for making http requests, the strongest matches are guzzle/guzzle (Guzzle is the industry-standard PHP HTTP client that natively), symfony/http-client (This library provides a robust, PSR-18 and PSR-7 compliant) and php-http/client-common (This library provides essential tools and common implementations for). aplus-framework/http-client and netflix/pollyjs round out the shortlist. Each is ranked by relevance to your query, popularity and recent activity.

We curate open-source GitHub repositories matching “best php http client libraries”. Results are ranked by relevance to your query — pick filters below to narrow, or refine with AI.

PHP HTTP Client Libraries

Find the best repos with AI.We'll search the best matching repositories with AI.
  • guzzle/guzzleguzzle avatar

    guzzle/guzzle

    23,453View on GitHub↗

    Guzzle is a PHP HTTP client used for sending synchronous and asynchronous requests to web services. It serves as a concurrent HTTP request manager, an HTTP stream handler, and a middleware-based HTTP pipeline. The project is a PSR-7 compliant client, utilizing standardized PHP interfaces for requests, responses, and streams. The library differentiates itself through a customizable functional handler stack that allows for the interception and modification of the request and response lifecycle. It features an adapter-based transport system that enables swapping between network implementations,

    Guzzle is the industry-standard PHP HTTP client that natively supports PSR-18, PSR-7, asynchronous requests, and a robust middleware-based pipeline for handling complex API interactions.

    PHPConnection PoolingForm Data SupportRequest Interception Middleware
    View on GitHub↗23,453
  • symfony/http-clientsymfony avatar

    symfony/http-client

    2,037View on GitHub↗

    Provides powerful methods to fetch HTTP resources synchronously or asynchronously

    This library provides a robust, PSR-18 and PSR-7 compliant solution for both synchronous and asynchronous HTTP requests, making it a comprehensive tool for handling API interactions in PHP.

    PHPStatic Site Generators
    View on GitHub↗2,037
  • php-http/client-commonphp-http avatar

    php-http/client-common

    1,050View on GitHub↗

    This library provides a standardized abstraction layer for PHP HTTP clients, enabling consistent request handling across diverse network transport implementations. It serves as a foundational toolkit for developers to manage network communication through unified interfaces, ensuring that application logic remains decoupled from specific underlying transport libraries. The project distinguishes itself through a decorator-based pipeline and a plugin-driven lifecycle system. These mechanisms allow for the interception and modification of request and response data, as well as the injection of cus

    This library provides essential tools and common implementations for the HTTPlug ecosystem, serving as a robust foundation for building PSR-18 compliant HTTP clients in PHP.

    PHPHTTP Client AdaptersAdapter PatternsHTTP Client Interfaces
    View on GitHub↗1,050
  • aplus-framework/http-clientaplus-framework avatar

    aplus-framework/http-client

    218View on GitHub↗

    This library is a PHP HTTP client designed for executing synchronous and asynchronous network requests. It provides a standards-compliant implementation of the PSR-18 interface, enabling consistent interaction with remote web services and external systems. The library distinguishes itself through an abstraction-layered architecture that decouples the request interface from specific network drivers. It utilizes a middleware-driven pipeline to process requests and responses, while employing a strategy pattern to parse raw network streams into structured objects based on content type. The syste

    This library provides a robust, object-oriented interface for making HTTP requests and handling responses, serving as a direct implementation of a PHP HTTP client.

    PHPHTTP Client LibrariesHTTP Request ExecutionPSR-18 Implementations
    View on GitHub↗218
  • netflix/pollyjsNetflix avatar

    Netflix/pollyjs

    10,253View on GitHub↗

    Pollyjs is an HTTP mocking and recording library designed to capture and replay network interactions to create deterministic tests. It functions as a request interceptor and stubbing framework that records real API responses into files, ensuring consistent test results across different environments without relying on live network servers. The tool utilizes pluggable network adapters to support various environments and employs a state-based mode switching system to toggle between recording, replaying, and stubbing behaviors. It uses pattern-based request matching and persistent interaction sto

    This is a JavaScript-based HTTP mocking and testing utility rather than a PHP library for handling production API requests, making it a tool for simulating network traffic rather than a client for executing it.

    JavaScriptHTTP Request InterceptorsRequest Interception Middleware
    View on GitHub↗10,253
  • hyperium/hyperhyperium avatar

    hyperium/hyper

    15,945View on GitHub↗

    Hyper is a low-level networking library designed for building high-performance HTTP clients and servers. It provides a foundational toolkit for creating network services that leverage asynchronous execution and memory-safe data handling, supporting both HTTP/1 and HTTP/2 protocols. The library distinguishes itself through a protocol-agnostic architecture that separates transport logic from HTTP semantics. It utilizes a service-trait abstraction to decouple network logic from the underlying transport, enabling developers to inject custom middleware for request interception and response transfo

    This is a high-performance networking library written in Rust, which does not support the PHP ecosystem or the PSR standards required for your project.

    RustConnection PoolingRequest Interception MiddlewareAsynchronous Network Clients
    View on GitHub↗15,945
  • curl/curlcurl avatar

    curl/curl

    42,214View on GitHub↗

    Curl is a command-line tool and portable library for transferring data across a wide range of network protocols. It functions as a unified engine that abstracts diverse communication standards, allowing users and developers to move files and information between servers using a consistent interface. The project provides both a versatile command-line client for terminal-based automation and a stable programmatic interface for integrating complex network operations into applications. The system is distinguished by its protocol-agnostic core and its ability to manage both synchronous and asynchro

    This is a low-level C library for network data transfer that serves as the underlying engine for many PHP HTTP clients, but it is not a PHP-native library and lacks the PSR-7 and PSR-18 interfaces required for modern PHP API development.

    CAsynchronous Network ClientsConnection Pooling MechanismsConnection Management Libraries
    View on GitHub↗42,214
  • gorilla/websocketgorilla avatar

    gorilla/websocket

    24,523View on GitHub↗

    This project provides a comprehensive implementation of the WebSocket protocol, enabling persistent, bidirectional communication between clients and servers. It handles the low-level complexities of the protocol, including the initial HTTP upgrade handshake and the encapsulation of data into discrete binary frames. By managing these connections, it allows applications to exchange data instantly without the overhead associated with repeated standard request cycles. The library distinguishes itself through its focus on high-frequency message exchange and concurrent connection management. It uti

    This is a Go-based WebSocket implementation for persistent, bidirectional communication, which is a different category than a PHP-based HTTP client library for standard request-response interactions.

    GoRequest Middleware
    View on GitHub↗24,523
  • gofiber/fibergofiber avatar

    gofiber/fiber

    39,849View on GitHub↗

    Fiber is a high-performance web framework designed for building scalable HTTP services with minimal memory overhead. It provides a comprehensive runtime environment for managing the full request lifecycle, utilizing an optimized radix tree for high-speed route matching and an object pooling system to reduce garbage collection pressure during traffic processing. The framework distinguishes itself through its multi-process architecture, which supports prefork socket reuse to distribute incoming traffic across all available CPU cores. It offers a modular approach to application development, feat

    This is a web framework for the Go language, not a PHP library, and it is designed for building servers rather than acting as an HTTP client for API interactions.

    GoHTTP Request InterceptorsMultipart Upload Utilities
    View on GitHub↗39,849

Related searches

  • a javascript library for making http requests
  • a java library for making http requests
  • an HTTP client library for Go
a C# library for making HTTP requests
  • a python library for making http requests
  • a lightweight HTTP client for TypeScript
  • an http client library for Dart
  • an http client library for Rust