PHP code example of vnappmob / ext-mime-type
1. Go to this page and download the library: Download vnappmob/ext-mime-type library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
vnappmob / ext-mime-type example snippets
$file_path = './path/to/file.js';
$mime_type = VNAppMob\ExtMimeType::getMimeContentType($file_path);
...