psr/http-factory
PSR-17 HTTP message factory interfaces for creating requests, responses, streams, URIs, and uploaded files. This package provides only the standard interfaces (no implementation). Find compatible implementations on Packagist.
Architecture fit: The package provides PSR-17 interfaces for HTTP message factories, which aligns with Laravel's existing PSR-7 foundation (via Guzzle). Laravel's HTTP client (Illuminate\Http\Client) doesn't natively require PSR-17, but the interfaces enable framework-agnostic HTTP client interoperability. This makes it ideal for projects needing to swap HTTP implementations (e.g., switching between Nyholm/psr7 and Guzzle's PSR-17 adapter) without code changes.
Integration feasibility: Extremely high. As a pure interface package with no implementation, integration requires only adding it as a dependency and pairing it with a concrete implementation (e.g., nyholm/psr7 or guzzlehttp/psr7). Laravel's dependency injection system easily accommodates factory implementations via service container binding.
**Technical risk
How can I help you explore Laravel packages today?