riverline/multipart-parser
Lightweight PHP multipart/form-data parser for handling HTTP uploads and mixed multipart bodies. Extracts fields and files from raw request streams with low memory use, suited for PSR-7 or custom servers needing reliable multipart boundary parsing.
Architecture fit: The package is framework-agnostic and PSR-7 compatible, making it technically viable for Laravel when bypassing superglobals (e.g., custom middleware, API gateways, or proxy scenarios). However, Laravel’s built-in Request class already handles multipart parsing via $_FILES, reducing the need for this library in standard use cases. It would only be justified for niche requirements like raw stream processing before Laravel’s kernel processes the request or for specialized HTTP clients.
Integration feasibility: Feasible but requires careful orchestration. Laravel’s Request::getBody() provides a stream compatible with the parser, but integrating it would necessitate middleware to intercept raw bodies before Laravel’s default processing. Conflicts may arise if other middleware or controllers rely on $_FILES or $request->file(), requiring explicit opt-in for endpoints using this parser.
Technical risk: Low GitHub stars (1
How can I help you explore Laravel packages today?