PHPackages                             dflydev/apache-mime-types - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Mail &amp; Notifications](/categories/mail)
4. /
5. dflydev/apache-mime-types

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

dflydev/apache-mime-types
=========================

Apache MIME Types

v1.0.1(13y ago)701.9M↓20.4%12[1 issues](https://github.com/dflydev/dflydev-apache-mime-types/issues)[2 PRs](https://github.com/dflydev/dflydev-apache-mime-types/pulls)20MITPHPPHP &gt;=5.3CI failing

Since Dec 6Pushed 6y ago1 watchersCompare

[ Source](https://github.com/dflydev/dflydev-apache-mime-types)[ Packagist](https://packagist.org/packages/dflydev/apache-mime-types)[ RSS](/packages/dflydev-apache-mime-types/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (3)Used By (20)

Apache MIME Types
=================

[](#apache-mime-types)

Parses Apache MIME Types files and provides a simple interface to find extensions by type and type by extension.

[![Build Status](https://camo.githubusercontent.com/caba7cd9feba28b0ba6859ba03bf288cde449ff2e402f267119a53c39cc15480/68747470733a2f2f7472617669732d63692e6f72672f64666c796465762f64666c796465762d6170616368652d6d696d652d74797065732e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/dflydev/dflydev-apache-mime-types)

Features
--------

[](#features)

- Bundles `mime.types` from the Apache HTTP Project. ([see here](https://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types))
- Bundles a JSON representation of Apache `mime.types`.
- Provides an interface for reading either flat Apache HTTP `mime.types`or a JSON representation.

Requirements
------------

[](#requirements)

- PHP 5.3.3+

Installation
------------

[](#installation)

Through [Composer](http://getcomposer.org/) as [dflydev/apache-mime-types](https://packagist.org/packages/dflydev/apache-mime-types).

Usage
-----

[](#usage)

### Parser

[](#parser)

Parses Apache MIME Types in the format of `mime.types` [found here](https://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types).

```
