nyholm/psr7-server
Create PSR-7 HTTP requests from PHP superglobals for PSR-15 apps and middleware. A lightweight server-side bridge for Nyholm PSR-7, ideal for frameworks, microservices, and interoperability without coupling to a full stack.
Architecture fit: Ideal for PSR-7/PSR-15 middleware stacks and microservices where standardized HTTP messages are required without full-stack framework overhead. Fits cleanly in projects needing interoperability between legacy PHP globals and modern PSR-compliant components. Not suitable for frameworks with native request handling (e.g., Laravel/Symfony), but complementary for custom middleware or lightweight frameworks like Slim.
Integration feasibility: High. Requires only minimal setup: instantiate ServerRequestFactory using a PSR-17 factory (e.g., Nyholm/psr7) and call createServerRequestFromGlobals(). No complex configuration needed. Dependencies are lightweight and well-documented.
Technical risk: Low. MIT license, active maintenance (2023-11-08 release), and small code surface area. Potential edge cases in multipart/form-data parsing or malformed headers, but the package includes explicit validation for uploaded files. Risk of dependency on specific PSR
How can I help you explore Laravel packages today?