PHP Classes

PHP Valid MIME Type: Get the MIME file of file with finfo or file name

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: 174 All time: 8,789 This week: 89Up
Version License PHP version Categories
mime 1.2The PHP License5.0PHP 5, Files and Folders
Description 

Author

This class can get the MIME file of file with finfo or file name.

It can determine the MIME type of a given file using the finfo extension.

If finfo extension is not available, the class can check the file name extension against a list of known file types to make a good guess.

Picture of George Ariton
Name: George Ariton <contact>
Classes: 1 package by
Country: Romania Romania

 

  Files folder image Files (3)  
File Role Description
Plain text file Mime.class.php Class Mime class source
Accessible without login Plain text file example.php Example Mime class example script
Accessible without login Image file image.jpg Photo Mime class image used for example

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:174
This week:0
All time:8,789
This week:89Up
User Comments (1)
This is a good class ;-)
11 years ago (José Filipe Lopes Santos)
70%StarStarStarStar