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.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| league/flysystem | 0.84 | Flysystem is a filesystem abstraction for PHP that lets you read, write, and manage files through a unified API across local disks and cloud storage (S3, FTP, SFTP, etc.). Swap adapters without changing app code, with consistent paths, streams, and visibility. | 13,567 | 13,946 | 853 | 13M | 84 | 64.7 | 63.8 | MIT | 2 years ago | |
| brandembassy/file-type-detector | 0.83 | Detect file type and MIME by filename extension or by inspecting binary/stream content. Returns category, format, and MIME on success (or false). Includes a helper to resolve MIME only. Install via composer: brandembassy/file-type-detector. | 2 | 2 | 0 | 6K | 0 | 22.0 | 50.9 | MIT | 2 months ago | |
| athlon1600/php-curl-file-downloader | 0.78 | Download remote files in PHP using cURL with a simple, lightweight wrapper. Supports saving to disk, streaming, progress callbacks, custom headers/options, redirects and timeouts—handy for CLIs or apps that need reliable file downloads. | 25 | 25 | 9 | 2K | 0 | 1.4 | 24.6 | MIT | 5 years ago | |
| dflydev/apache-mime-types | 0.77 | 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. | 70 | 77 | 12 | 31K | 1 | 1.0 | 36.8 | — | — | |
| zendframework/zend-mime | 0.77 | Zend\Mime is a PHP library for creating and parsing MIME messages. Build multipart emails, manage MIME parts, boundaries, headers, and content types/encodings, and handle attachments reliably—useful for mail composition and transport integration. | 60 | 63 | 35 | 43K | 6 | 2.4 | 28.8 | BSD-3-Clause | 6 years ago | |
| jshttp/mime-db | 0.76 | Comprehensive database of MIME types and associated file extensions for Node.js and browser tooling. Provides up-to-date mappings used by content-type detection and HTTP libraries, making it easy to look up the correct MIME type for files and responses. | 1,243 | — | 283 | — | 25 | 23.7 | 15.2 | MIT | 1 year ago | |
| onnov/detect-encoding | 0.72 | Fast Cyrillic text encoding detector for PHP to replace unreliable mb_detect_encoding. Identifies Windows-1251, KOI8-R, ISO-8859-5 (optionally IBM866/MacCyrillic) using code page ranges, with high accuracy even on short strings and very large texts. | 22 | 23 | 5 | 103K | 1 | 2.2 | 50.3 | MIT | 5 years ago | |
| league/uri-components | 0.72 | Immutable value objects for concrete URI components (host, path, query, etc.) in the League URI ecosystem. Requires PHP 8.1+. Supports IDN hosts with intl (or polyfill) and IPv4 conversion via GMP/BCMath or 64-bit PHP. | 319 | 324 | 5 | 3M | 0 | 27.0 | 61.4 | MIT | 2 months ago | |
| diego182/mobile-detect | 0.71 | Symfony bundle wrapper for Mobile Detect. Provides auto-configuration and autowiring so you can inject a MobileDetect service into your app to detect mobile/tablet devices from the user agent with minimal setup. | 1 | 1 | 0 | 0 | 0 | 12.1 | — | MIT | 5 months ago | |
| typhoon/change-detector | 0.71 | — | 0 | 0 | 0 | 2K | 0 | 1.2 | 46.7 | MIT | 1 year ago | |
| expresslanding/laravel-filesystem | 0.71 | Extend Laravel Filesystem with unlimited disks (local, S3, SFTP, FTP). Track disk space usage, manage disk statuses, and select an available drive (e.g., random). Includes migrations and config for MySQL or PostgreSQL setups. | 0 | 0 | 0 | 37 | 0 | 0.9 | 21.8 | MIT | 4 years ago | |
| league/uri | 0.70 | League URI provides simple, intuitive PHP 8.1+ classes to parse, validate, normalize, and manipulate URIs and related components. Supports PSR-7 interoperability, IDN hosts (intl/polyfill), IPv4 conversion, and HTML URI handling. | 1,128 | 1,159 | 72 | 11M | 0 | 33.2 | 62.6 | MIT | 2 months ago | |
| contentful/contentful | 0.70 | Official PHP client for Contentful’s Content Delivery and Preview APIs. Fetch entries, assets, and content types from your spaces with a typed SDK, caching and link resolution options, and easy integration into PHP applications and frameworks. | 118 | 120 | 66 | 84K | 5 | 19.3 | 43.2 | MIT | 8 months ago |
How can I help you explore Laravel packages today?