wapmorgan/file-type-detector
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.
.jpg containing executable content), a basic control for fraud/abuse and compliance workflows.fileinfo extension or a maintained library.finfo/fileinfo, symfony/mime, or Laravel’s validation rules with MIME checks. These are maintained, widely deployed, and better supported.fileinfo or symfony/mime.How can I help you explore Laravel packages today?