vnappmob / ext-mime-type
Custom MIME Content Type
1.0.3
2024-03-29 08:44 UTC
README
The current PHP mime_content_type
returns the MIME content type for a file as determined by using information from the magic.mime file. It might be text/plain
for file type like css or javascript
This implementation using a map/dictionary of file extension to parse file type content (Original from svogal)
Usage
require_once __DIR__ . '/vendor/autoload.php'; $file_path = './path/to/file.js'; $mime_type = VNAppMob\ExtMimeType::getMimeContentType($file_path); ...