rosell-dk/image-mime-type-sniffer
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.
|
Package
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|
| 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... | 10 | — | 1 | — | 2 | 0.5 | — | MIT | 2 years ago |
|
How can I help you explore Laravel packages today?