PHP code example of apxcde / mime-types

1. Go to this page and download the library: Download apxcde/mime-types 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/ */

    

apxcde / mime-types example snippets


composer 

use Apxcde\MimeTypes\MimeTypeConverter;

$converter = new MimeTypeConverter;

echo $converter->toMimeType('jpeg');

echo $converter->toExtension('image/jpeg');

make dev

make test