workerman/psr7
PSR-7 HTTP message implementation for Workerman, offering interoperable request and response objects for middleware-friendly PHP services on the Workerman event loop. Lightweight and easy to integrate into existing Workerman HTTP applications.
Request, Response, Stream, Uri, UploadedFile) is commodity infrastructure. This package lets you consume a spec-compliant implementation instead of hand-rolling message objects and stream handling — a decision that should almost always resolve to "buy/consume" unless you have unusual performance constraints.Consider it when:
Look elsewhere when:
nyholm/psr7, guzzlehttp/psr7, or laminas-diactoros, all of which have far deeper integration documentation and downstream usage.To executives: This is a small, MIT-licensed standards component, not a platform commitment. It buys us PHP standard-compliant HTTP messages so our services can use off-the-shelf integrations and so our code is portable across runtimes. Cost is near zero, lock-in is low because the contract is a public standard rather than a vendor API, and it supports the roadmap theme of "integrate with the broader PHP ecosystem instead of building bespoke plumbing." The honest caveat: the package itself is lightly adopted, so we should treat it as a component of the Workerman ecosystem we already depend on, keep it version-pinned, and isolate it behind our own interface so it can be swapped without product impact.
To engineering: Treat this as a thin adapter, not a framework. Consume it where you're already inside Workerman and need PSR-7 messages; wrap it behind an internal boundary so nyholm/psr7 or guzzlehttp/psr7 is a drop-in replacement if maintenance stalls. Expect no PSR-17 factories or middleware runner here — plan those separately. Verify PHP version support and stream behavior against our actual workloads (large uploads, chunked responses) before it lands in a hot path, and add a handler-level test suite to make the swap cheap.
How can I help you explore Laravel packages today?