zendframework/zend-http
Zend\Http is a PHP HTTP component for building and processing HTTP messages. It provides clients and adapters for making requests, plus request/response objects, headers, cookies, and utilities to work with URIs and HTTP-level features in your apps.
The zendframework/zend-http package provides low-level HTTP message handling (requests, responses, headers, URIs) but is no longer actively maintained—its functionality has been migrated to laminas/laminas-http since 2020. Because this package is archived and receives no updates, start by installing laminas/laminas-http instead, as it’s the official successor and actively supported.
composer require laminas/laminas-http
Then:
use Laminas\Http\Request;
$request = Request::fromString("GET /path HTTP/1.1\r\nHost: example.com\r\n\r\n");
Laminas\Http\Request/Response to programmatically build requests (e.g., for API clients) or parse raw HTTP strings (e.g., from logs or proxies).Laminas\Http\Headers for case-insensitive, typed header handling (e.g., Cookie, Authorization, Content-Type).Laminas\Http\Uri for URL validation, normalization, and relative URL resolution.zendframework/zend-http is not updated for PHP 8+ and has known issues with modern PHP versions. Avoid new projects—migrate to laminas/laminas-http.nyholm/psr7) or Laravel’s Http client.Request::fromString() with $_SERVER-derived raw HTTP (e.g., SAPI input), but be wary of line ending differences (\r\n vs \n) in cross-platform environments.Laminas\Http\Request to add app-specific behavior (e.g., signed request helpers), but prefer PSR-7 for interoperability with modern packages.How can I help you explore Laravel packages today?