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.
$_FILES behaviorAdopt this package when building custom HTTP infrastructure (e.g., standalone servers, reverse proxies) where PHP's built-in multipart handling is inaccessible or too rigid. It's ideal for projects requiring strict control over file processing, PSR-7 compatibility, or avoiding superglobals for security reasons. Avoid it if using a modern PHP framework (e.g., Laravel, Symfony) that already provides robust multipart handling through their request objects, or for simple applications where standard form processing suffices. Additionally, if your use case requires advanced streaming directly to cloud storage without intermediate buffering, specialized storage-focused libraries may be more appropriate.
For executives: "This lightweight library eliminates security risks and development overhead by providing a reliable, framework-agnostic way to handle file uploads without PHP's vulnerable superglobals. It accelerates time-to-market for critical features like secure file uploads in custom infrastructure, reducing engineering costs while improving system resilience." For engineering teams: "Integrates seamlessly with PSR-7 and raw streams, handles edge cases like repeated fields and large files, and has zero framework dependencies. Perfect for building middleware, proxies, or serverless functions where standard PHP
How can I help you explore Laravel packages today?