vnappmob / ext-mime-type
Custom MIME Content Type
Installs: 196
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/vnappmob/ext-mime-type
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); ...