PHPackages                             brightnucleus/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. brightnucleus/mime-types

ActiveComposer-plugin[Utility &amp; Helpers](/categories/utility)

brightnucleus/mime-types
========================

Automatically updated MIME types database, using the Apache HTTP Server configuration.

v0.2.0(8y ago)12.3kMITPHPPHP &gt;=5.3

Since Sep 26Pushed 8y ago1 watchersCompare

[ Source](https://github.com/brightnucleus/mime-types)[ Packagist](https://packagist.org/packages/brightnucleus/mime-types)[ RSS](/packages/brightnucleus-mime-types/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (4)Used By (0)

Bright Nucleus MIME Types Database
==================================

[](#bright-nucleus-mime-types-database)

[![Latest Stable Version](https://camo.githubusercontent.com/3e20db9efc3febce216d90eb989f3dd989afdc4ac4d04b34350a41bbfed70e4b/68747470733a2f2f706f7365722e707567782e6f72672f6272696768746e75636c6575732f6d696d652d74797065732f762f737461626c65)](https://packagist.org/packages/brightnucleus/mime-types)[![Total Downloads](https://camo.githubusercontent.com/3d63c3860c89b8e1fbcef0449fde93e292de2302c25d09ec8a3099b5f147d642/68747470733a2f2f706f7365722e707567782e6f72672f6272696768746e75636c6575732f6d696d652d74797065732f646f776e6c6f616473)](https://packagist.org/packages/brightnucleus/mime-types)[![Latest Unstable Version](https://camo.githubusercontent.com/3ed5a3ec5fbda74d562df8ba5c590f23185191676d020cf6d214efc0eea58fd7/68747470733a2f2f706f7365722e707567782e6f72672f6272696768746e75636c6575732f6d696d652d74797065732f762f756e737461626c65)](https://packagist.org/packages/brightnucleus/mime-types)[![License](https://camo.githubusercontent.com/b2820d2b869e3ec886dfe541aa72d6c6e16f498535b1789710bdbbd44bdeb0ee/68747470733a2f2f706f7365722e707567782e6f72672f6272696768746e75636c6575732f6d696d652d74797065732f6c6963656e7365)](https://packagist.org/packages/brightnucleus/mime-types)

This is a Composer plugin that provides an automated version of the MIME types as defined by the Apache HTTP Server.

The main advantage is that the downloaded database will be updated on each `composer install` and `composer update`.

Table Of Contents
-----------------

[](#table-of-contents)

- [Attribution](#attribution)
- [Installation](#installation)
- [Basic Usage](#basic-usage)
- [Contributing](#contributing)
- [License](#license)

Attribution
-----------

[](#attribution)

This package uses data from the Apache HTTP Server, licensed under the Apache License v2.0.

You can read a copy of this license at .

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

[](#installation)

The only thing you need to do to make this work is adding this package as a dependency to your project:

```
composer require brightnucleus/mime-types
```

Basic Usage
-----------

[](#basic-usage)

On each `composer install` or `composer update`, a check will be made to see whether there's a new version of the database available. If there is, that new version is downloaded.

Usage is pretty straight-forward. Just use one of the two provided static methods:

```
