amphp/http-server-form-parser
Parses application/x-www-form-urlencoded and multipart/form-data request bodies for amphp/http-server, giving handlers easy access to submitted form fields and uploaded files with a simple, asynchronous API.
amphp/http-server (AMPHP's event-loop-based HTTP server, Revolt loop, PHP 8.1+). It is only actionable if a product decision has already been made — or is being made — to run services on AMPHP rather than PHP-FPM/Laravel/Symfony. Treat it as an input to that decision, not to a Laravel roadmap.application/x-www-form-urlencoded or multipart/form-data — specifically where the service already runs on amphp/http-server.Consider it when:
amphp/http-server v2 (or an AMPHP-based framework such as DriftPHP) and receives real form submissions.multipart/form-data (including file parts) and application/x-www-form-urlencoded handled consistently.Look elsewhere when:
For executives (one paragraph): This is a small, free (MIT) utility that solves one narrow plumbing problem — reading submitted web forms — for services built on AMPHP's async HTTP server. It is not part of our Laravel stack and carries no strategic weight. The upside is a few engineering-days saved and fewer hand-rolled parsing bugs; the downside is a tiny, thinly maintained dependency. The decision is low-cost and fully reversible, so it should be approved only as a tactical, wrapped dependency inside an async service — never as a platform bet.
For engineering: It removes a well-known class of bugs (multipart boundaries, part headers, encoding differences) from any AMPHP service that accepts forms. Pin the version, wrap it behind an internal FormRequestParser interface, add contract tests against representative payloads (file parts, empty fields, large bodies), and keep a fallback path so the dependency can be swapped or vendored without touching handlers. Verify compatibility with your current amphp/http-server and PHP versions before adoption — the last release predates recent AMPHP majors in some cases.
Recommendation: Conditional adopt. Green-light only for teams already committed to amphp/http-server; otherwise take no action and revisit if/when an async PHP service enters the roadmap.
How can I help you explore Laravel packages today?