laminas/laminas-diactoros
PSR-7 HTTP message implementation (ServerRequest, Request, Response, Stream, UploadedFile, Uri) for PHP. Includes factories and utilities for creating and normalizing requests/responses, with strong type coverage and interoperability with PSR-17/PSR-15.
Architecture fit: High. PSR-7 standardization ensures seamless interoperability with any PSR-15 middleware stack (e.g., Slim, Expressive, Laminas MVC). Lightweight implementation avoids performance overhead while providing standardized HTTP semantics for request/response handling. Ideal for modern PHP applications requiring decoupled HTTP layers.
Integration feasibility: Straightforward via Composer. Built-in factories (ServerRequestFactory::fromGlobals()) simplify superglobal conversion. Works with existing middleware without major refactoring. PSR-17 factory support enables consistent message creation across components.
Technical risk: Low. Strong test coverage (type-coverage/PSalm badges), BSD-3 license, and Laminas backing. However, "dependents: 0" and "last release: 2025-10-12" (future date) in provided data raise red flags about current maintenance status. Package maturity appears inconsistent with actual GitHub activity.
Key questions:
How can I help you explore Laravel packages today?