PHP code example of apokalipscke / file-mimer
1. Go to this page and download the library: Download apokalipscke/file-mimer 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/ */
apokalipscke / file-mimer example snippets
use Apokalipscke\FileMimer\FileMimer;
$fileTypeName = FileMimer::get('audio/mpeg');
use Apokalipscke\FileMimer\FileMimer;
$fileTypeName = FileMimer::getFromFile("/path/to/your.file");