MIME_Type
pear.php.net
Utility class for dealing with MIME types
Provide functionality for dealing with MIME types.
* Parse MIME type.
* Supports full RFC2045 specification.
* Many utility functions for working with and determining info about types.
* Most functions can be called statically.
* Autodetect a file's mime-type, either with fileinfo extension,
mime_magic extension, the 'file' command or an in-built mapping list
Ian Eure
ieure
ieure@php.net
no
Christian Weiske
cweiske
cweiske@php.net
yes
2015-11-04
1.4.1
1.4.0
stable
stable
LGPL
- Update extension-mime-mapping list; 785 new types.
5.4.0
1.9.0
PEAR
pear.php.net
1.9.0
System_Command
pear.php.net
1.0.0beta1
1.0.0beta1
beta
beta
2004-04-16
PHP License 3.0
Initial PEARification
* Split most functionality off from MIME_ContentType
1.0.0beta2
1.0.0beta2
beta
beta
2004-06-16
PHP License 3.0
* Make changes as requested during the proposal/vote process.
1.0.0beta3
1.0.0beta3
beta
beta
2004-08-07
PHP License 3.0
* Add $parameters class var. (Fixes #2083)
* Quote filenames in _fileAutoDetect() (Fixes #2078)
1.0.0
1.0.0
stable
stable
2005-01-26
PHP License 3.0
- No changes since 1.0.0beta3.
1.1.0
1.1.0
stable
stable
2007-03-25
PHP License 3.0
- Implementing request #3719: Use several methods when detecting mime type
- Fixing bug #6095: Parameters and comments parsing buggy
- Fixing bug #8603: function _fileAutoDetect() uses System_Command incorrectly
- Make example.php check for errors when detecting.
- Adding unit tests
1.1.1
1.1.0
stable
stable
2008-07-24
PHP License 3.0
- Fix #14150, notices due to use of =& new.
1.1.2
1.1.2
stable
stable
2008-08-01
PHP License 3.0
- Fix bug #14417: Remove "&$comments = null" since that's not supported
in PHP4.
1.1.3
1.1.2
stable
stable
2008-08-03
PHP License 3.0
- Coding Standards cleanup
- parameters are cleared when parsing again
- more tests
1.2.0
1.2.0
stable
stable
2009-01-16
PHP License 3.0
* Extension-to-MIMEType mapper by Christian Schmidt, bug #13646
1.2.1
1.2.0
stable
stable
2010-10-25
PHP License 3.0
Automatically built QA release
Req #13646 Default to Mime Type based on Extension - cweiske
1.3.0
1.3.0
stable
stable
2011-09-05
PHP License 3.0
- Implement request #17969: Configurable magic database file
- Fix bug #17969: Fall back to next method after file command error
- Single detection methods may be disabled
1.3.1
1.3.0
stable
stable
2012-02-25
LGPL
- Change license from PHP to LGPL
1.3.2
1.3.0
stable
stable
2013-09-23
LGPL
- Fix bug #19609: file extension detection fails with uppercase extensions
1.3.3
1.3.0
stable
stable
2013-10-03
LGPL
- Fix bug #20079: Corrupt tgz package
1.3.4
1.3.0
stable
stable
2014-10-22
LGPL
- add mp4 to extensionToType array
1.3.5
1.3.0
stable
stable
2015-06-15
LGPL
- add .m2t and .m2ts to extensionToType array
1.4.0
1.4.0
stable
stable
2015-10-07
LGPL
- Drop PHP4 support
- MIME_Type is E_STRICT-clean now
1.4.1
1.4.0
stable
stable
2015-11-04
LGPL
- Update extension-mime-mapping list; 785 new types.