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.
Detects file type by filename or content and generates correct mimetype.
How can I help you explore Laravel packages today?