qmetrics.net

Guzzle

Extensible PHP HTTP client for web services

Guzzle is a PHP HTTP client for sending requests and integrating with web APIs. It exposes one interface for sync and async calls with PSR-7 and PSR-18 compatibility.

Overview

Guzzle focuses on making routine HTTP work in PHP straightforward: building query strings, form posts, large uploads and downloads, cookies, and JSON payloads through a single client API. The same surface supports synchronous and asynchronous requests.

Requests, responses, and streams are modeled with PSR-7 interfaces so other PSR-7 libraries can plug in. PSR-18 support lets projects swap HTTP clients while keeping shared abstractions.

The transport layer is abstracted behind handlers, so application code does not need to depend on cURL, PHP streams, sockets, or a specific event loop. A middleware stack lets you layer retries, logging, or custom behavior around the core client.

Documentation covers request options, cookie jars, exception types, handler configuration, middleware composition, and patterns for testing clients that wrap Guzzle.

Key features

  • Sync and async requests on one client
  • PSR-7 message and stream interfaces
  • PSR-18 HTTP client interoperability
  • Pluggable HTTP transport handlers
  • Composable middleware pipeline
  • JSON, forms, cookies, and streaming I/O
  • Transport-agnostic application code
  • Documented testing patterns for clients

Use cases

  • Calling REST APIs from PHP applications
  • Uploading or downloading large files over HTTP
  • Sharing HTTP abstractions across PSR-7 libraries
  • Adding retries and logging via middleware
  • Integrating third-party web services in PHP

Tags

Similar software

axios

Promise-based HTTP client for browser and Node.js

Axios is a promise-based HTTP client for JavaScript environments in the browser and Node.js. It supports common request methods, configurable defaults, and interceptors for request and response handling.

★ 109.5k⟳ 2 days agoMIT

FastAPI

Python web framework for building APIs with type hints

FastAPI is a Python web framework for building APIs using standard type hints. It builds on Starlette and Pydantic and generates interactive OpenAPI documentation for the endpoints you define.

★ 105.1k⟳ 9 days agoMIT

OmniRoute

OpenAI-compatible AI gateway with provider routing

OmniRoute exposes one endpoint that routes chat requests across many LLM providers with quota-aware fallback and compression.

★ 90.7k⟳ todayMIT

Hoppscotch

Web, desktop and CLI API development ecosystem

Hoppscotch lets developers send HTTP, WebSocket, GraphQL, and related API requests from a lightweight client. Collections, environments, teams, and sync help organize testing across devices.

★ 81k⟳ 5 days agoMIT
Open Source Alternative to:Postman

NestJS

Progressive TypeScript framework for Node.js backends

Nest organizes Node server apps with modules, dependency injection, and first-party packages for auth, data, queues, and observability.

★ 77.2k⟳ todayMIT

JSON Server

Zero-code mock REST API from JSON data files

JSON Server turns a JSON or JSON5 database file into a REST API for local prototyping. It supports filtering, sorting, pagination, embedding relations, and static assets.

★ 75.7k⟳ 8 months agoMIT