2017 © Pedro Peláez
 

composer-plugin mime-types

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

image

brightnucleus/mime-types

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

  • Monday, October 2, 2017
  • by schlessera
  • Repository
  • 1 Watchers
  • 1 Stars
  • 264 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Bright Nucleus MIME Types Database

Latest Stable Version Total Downloads Latest Unstable Version License, (*1)

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

The main advantage is that the downloaded database will be updated on each composer install and composer update., (*3)

Table Of Contents

Attribution

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

You can read a copy of this license at http://svn.apache.org/repos/asf/httpd/httpd/trunk/LICENSE., (*5)

Installation

The only thing you need to do to make this work is adding this package as a dependency to your project:, (*6)

composer require brightnucleus/mime-types

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., (*7)

Usage is pretty straight-forward. Just use one of the two provided static methods:, (*8)

<?php

use BrightNucleus\MimeTypes\MimeTypes;

// Get the extensions for a given MIME type.
$extensions = MimeTypes::getExtensionsForType( 'image/jpeg' ); // Returns array( 'jpeg', 'jpg', 'jpe' ).

// Get the MIME types for a given extension.
$mimeTypes = MimeTypes::getTypesForExtension( 'jpg' ); // Returns array( 'image/jpeg' ).

Contributing

All feedback / bug reports / pull requests are welcome., (*9)

License

This code is released under the MIT license., (*10)

For the full copyright and license information, please view the LICENSE file distributed with this source code., (*11)

The Versions

02/10 2017

dev-master

9999999-dev

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

  Sources   Download

MIT

The Requires

  • php >=5.3
  • composer-plugin-api ^1.1

 

02/10 2017

v0.2.0

0.2.0.0

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

  Sources   Download

MIT

The Requires

  • php >=5.3
  • composer-plugin-api ^1.1

 

26/09 2017

v0.1.1

0.1.1.0

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

  Sources   Download

MIT

The Requires

  • php >=5.3
  • composer-plugin-api ^1.1

 

26/09 2017

v0.1.0

0.1.0.0

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

  Sources   Download

MIT

The Requires

  • php >=5.3
  • composer-plugin-api ^1.1