PHP Classes

Mime Type Getter: Determine the MIME type of a given file

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 420 All time: 6,397 This week: 206Up
Version License PHP version Categories
mimetypegetter 1.0BSD License5.0PHP 5, Files and Folders
Description 

Author

This class can be used to determine the MIME type of a file.

It can try to determine the MIME type associated to given file:

- Using the PHP file info extension
- Using the PHP MIME magic extension
- Checking the file name extension

The class can call fallback to the last method if any of the necessary PHP extensions are not available.

Picture of Bartek Pohl
Name: Bartek Pohl <contact>
Classes: 1 package by
Country: Germany Germany

  Files folder image Files (1)  
File Role Description
Plain text file class.MimeTypeGetter.php Class The Classfile

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:420
This week:0
All time:6,397
This week:206Up