dflydev/apache-mime-types
Parse and query Apache mime.types mappings in PHP. Includes bundled Apache mime.types plus JSON representation. Use parser to read mime.types files, or repositories (PHP, JSON, flat) to look up MIME type by extension and extensions by type.
415 Unsupported Media Type).image/jpeg to image/png).mime.types maintenance bandwidth.mime-type or finfo.For Executives:
"This package lets us reliably map file extensions to MIME types (e.g., .jpg → image/jpeg) using Apache’s official database—saving dev time and ensuring consistency across uploads, APIs, and media processing. It’s a drop-in solution that reduces bugs from incorrect content types (e.g., broken image displays or API rejections). Low risk: minimal overhead, battle-tested, and maintained."
For Engineering:
*"We’re adding dflydev/apache-mime-types to standardize MIME handling. Key benefits:
mime.types (updated via package).findType('html')) or extensions by type (findExtensions('text/html')).mime.types files or a pre-parsed JSON cache.How can I help you explore Laravel packages today?