Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Mime Type Detection Laravel Package

league/mime-type-detection

Fast, reliable MIME type detection for PHP. Detects from file extensions and binary signatures using shared databases, with a simple API and customizable mappings. Ideal for uploads, validation, and content-type handling in Laravel and other PHP apps.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Security-first file handling: Enables accurate MIME detection to prevent malicious uploads (e.g., disguised executables or XSS payloads), reducing security vulnerabilities in user-upload workflows.
  • Build vs buy: Eliminates custom MIME logic development; leverages a battle-tested, actively maintained package (1340+ stars, frequent updates) with enterprise-grade features like reverse lookups and memory optimization.
  • Roadmap alignment: Supports compliance with evolving file standards through regular MIME database updates (e.g., 1.16.0 preps for PHP 8.4 deprecations), ensuring future
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport