rosell-dk/image-mime-type-guesser
A lightweight PHP library for detecting the MIME type of image files using multiple strategies, including finfo, exif_imagetype, getimagesize and magic byte sniffing. It falls back gracefully between methods, making it reliable for validating uploads and identifying images even when some PHP extensi...
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| rosell-dk/image-mime-type-sniffer | 0.90 | A small PHP library that detects an image's MIME type by inspecting its actual file contents rather than trusting the extension. Useful when validating uploads, since it relies on magic bytes and is easy to drop into existing projects. | 2 | — | 0 | — | 0 | 0.0 | — | MIT | 4 years ago |
|
| imagekit/imagekit | 0.84 | Laravel integration for ImageKit.io that simplifies uploading, storing, and managing media, generating optimized transformation URLs, and serving responsive images. Provides a clean API for file operations and straightforward configuration for Laravel applications. | 46 | 46 | 14 | 60K | 2 | 1.5 | 43.2 | MIT | 2 years ago | |
| raditzfarhan/sahrule | 0.84 | — | 0 | 0 | 0 | 0 | 0 | 0.0 | — | MIT | — | |
| photogabble/laravel-remember-uploads | 0.84 | Laravel package that remembers file uploads between requests, helping uploaded files survive validation failures and form redisplay. It stores temporary uploads and simplifies repopulating file inputs without forcing users to upload again. | 63 | — | 1 | — | 3 | 1.4 | 0.4 | MIT | 8 years ago | |
| mhor/php-mediainfo | 0.84 | A PHP wrapper around the MediaInfo CLI for reading detailed metadata from audio and video files. It provides a clean object-oriented API for codecs, duration, bitrate, resolution, channels, and track details, returning parsed output for easy inspection. | 120 | — | 22 | — | 7 | 3.3 | 2.3 | MIT | — |
|
| zetacomponents/image-analysis | 0.83 | PHP component from Zeta Components for analyzing image files. It detects MIME type, image format, dimensions, and animation status using GD or ImageMagick backends, making it useful for validating uploads and describing images in PHP applications. | 3 | 3 | 6 | 10K | 0 | 0.2 | 46.9 | NOASSERTION | — | |
| xantios/mimey | 0.83 | xantios/mimey is a PHP MIME type helper for converting file extensions to MIME types and back. It offers a lightweight API for detection and validation, simplifying file upload and content-type handling in Laravel or plain PHP apps. | 33 | 33 | 0 | 122K | 1 | 0.3 | 49.1 | MIT | 5 years ago | |
| league/mime-type-detection | 0.83 | 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. | 1,344 | 1,350 | 29 | 24M | 2 | 8.6 | 57.4 | MIT | — | |
| zendframework/zend-mime | 0.83 | 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 | 44K | 6 | 2.4 | 28.9 | BSD-3-Clause | 7 years ago | |
| adrienrn/php-mimetyper | 0.83 | A lightweight PHP library for MIME type mapping. Look up MIME types by file extension and extensions by MIME type through a simple API, useful for uploads, validation, and content headers without relying on file inspection. | 24 | — | 6 | — | 2 | 0.9 | 0.8 | MIT | — |
|
| illuminatech/multipart-middleware | 0.83 | Laravel middleware that parses multipart/form-data requests for PUT, PATCH, and other non-POST methods, populating the request with regular input and uploaded files so you can handle file uploads on any HTTP verb. | 33 | — | 6 | — | 0 | 0.3 | — | NOASSERTION | — | |
| php-standard-library/file | 0.83 | Typed file handles for safe reading and writing in PHP, with explicit write modes and advisory file locking. Part of PHP Standard Library, designed to make filesystem IO clearer and less error-prone. | 1 | 1 | 0 | 102K | 0 | 21.5 | 64.9 | MIT | 1 week ago | |
| rich-id/design-customization-bundle | 0.83 | A Laravel/PHP bundle for adding design customization to Rich ID applications. It provides configurable components and helpers for themes, layouts, and branding, letting users tailor the look and feel without custom code. Install via Composer, then publish the included assets and settings. | 2 | 2 | 0 | 201 | 0 | 0.3 | 25.3 | MIT | 4 years ago | |
| dflydev/apache-mime-types | 0.83 | 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 | 26K | 1 | 1.0 | 35.7 | — | — | |
| petehouston/laravel-tinymce-simple-imageupload | 0.83 | Integrates TinyMCE's image upload with Laravel: adds a configurable upload endpoint that handles image files from the editor, validates and stores them on your disks, and returns the URL to TinyMCE for immediate insertion. | 66 | — | 24 | — | 9 | 3.7 | 3.0 | — | — | |
| wapmorgan/file-type-detector | 0.83 | A lightweight PHP library that detects file types by extension and MIME type, mapping files to broad categories such as image, audio, video, document, archive, and other. Useful for upload validation, file organization, and content handling in PHP applications. | 33 | 35 | 14 | 4K | 1 | 1.0 | 29.9 | MIT | 9 years ago | |
| onliner/imgproxy-php | 0.82 | PHP client for imgproxy that builds signed and unsigned image URLs through a fluent, chainable API. Supports resizing, cropping, gravity, format conversion, and Laravel integration, letting you serve optimized, secure images from your own imgproxy instance. | 25 | — | 5 | — | 0 | 8.4 | — | MIT | 7 months ago |
|
| athlon1600/php-curl-file-downloader | 0.82 | 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. | 26 | 26 | 10 | 2K | 0 | 1.4 | 25.3 | MIT | 5 years ago | |
| laravel-at/laravel-image-sanitize | 0.82 | Laravel middleware that re-encodes uploaded images to strip hidden malicious payloads, reducing the risk of code execution. Requires PHP 8.3+, Laravel 12/13, and Intervention Image 4. | 345 | 346 | 24 | 5K | 0 | 23.3 | 19.3 | MIT | 2 months ago | |
| brandembassy/file-type-detector | 0.82 | 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 | 7K | 0 | 13.2 | 49.2 | MIT | 7 months ago |
How can I help you explore Laravel packages today?