Skip to content

Converter mime type to extension

License

Notifications You must be signed in to change notification settings

higimo/php-package-mime-2-ext

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

higimo/mime-2-ext

Converter mime type to extension

<?php
	$file = file_get_contents('./file.otf');
	\Higimo\Mime2Ext::getMime($file); // 'application/vnd.ms-opentype'
	\Higimo\Mime2Ext::getExt($file); // otf
	\Higimo\Mime2Ext::getExtByFile($file); // otf
	\Higimo\Mime2Ext::getExtByMime('application/vnd.ms-opentype'); // otf
	\Higimo\Mime2Ext::get('application/vnd.ms-opentype'); // otf

Install

composer.bat require higimo/mime-2-ext

License

MIT

About

Converter mime type to extension

Resources

License

Stars

Watchers

Forks

Languages