2017 © Pedro Peláez
 

library php-mime-type

A PHP library to detect the mime type of files.

image

katzien/php-mime-type

A PHP library to detect the mime type of files.

  • Thursday, March 23, 2017
  • by katzien
  • Repository
  • 2 Watchers
  • 2 Stars
  • 1,411 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 2 Forks
  • 1 Open issues
  • 9 Versions
  • 82 % Grown

The README.md

PhpMimeType

A PHP library to detect the mime type of a file., (*1)

Build Status Coverage Status, (*2)

Latest Stable Version Total Downloads, (*3)

License, (*4)

Not invented here

This is a modernised version of Jason Sheets's mimetype class., (*5)

Installation

To add the PhpMimeType library to your project run, (*6)

composer require katzien/php-mime-type

from the directory where your composer.json file is., (*7)

See Packagist for more details., (*8)

Version Guidance

Version Status PHP version required
1.x Maintained min. 5.3
2.x Latest (recommended) min. 5.6

If you're using PHP 5.6 or higher, you should use the latest 2.x version. There is no difference in usage between 1.x and 2.x, so the upgrade should not require any code changes., (*9)

Differences between 1.x and 2.x: - syntax - versions of composer dependencies, (*10)

Usage

$type = \MimeType\MimeType::getType('my-file.pdf'); // returns "application/pdf"

The Versions

23/03 2017

dev-master

9999999-dev https://github.com/katzien/PhpMimeType

A PHP library to detect the mime type of files.

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

by Kat Zien

php mimetype

23/03 2017

2.1.0

2.1.0.0 https://github.com/katzien/PhpMimeType

A PHP library to detect the mime type of files.

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

by Kat Zien

php mimetype

23/03 2017

2.x-dev

2.9999999.9999999.9999999-dev https://github.com/katzien/PhpMimeType

A PHP library to detect the mime type of files.

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

by Kat Zien

php mimetype

23/03 2017

1.2.0

1.2.0.0 https://github.com/katzien/PhpMimeType

A PHP library to detect the mime type of files.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Kat Zien

php mimetype

23/03 2017

1.x-dev

1.9999999.9999999.9999999-dev https://github.com/katzien/PhpMimeType

A PHP library to detect the mime type of files.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Kat Zien

php mimetype

04/12 2016

2.0.2

2.0.2.0 https://github.com/katzien/PhpMimeType

A PHP library to detect the mime type of files.

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

by Kat Zien

php mimetype

16/12 2015

2.0.1

2.0.1.0 https://github.com/katzien/PhpMimeType

A PHP library to detect the mime type of files.

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

The Development Requires

by Kat Zien

php mimetype

16/12 2015

1.1.0

1.1.0.0 https://github.com/katzien/PhpMimeType

A PHP library to detect the mime type of files.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Kat Zien

php mimetype

20/03 2015

1.0.0

1.0.0.0 https://github.com/katzien/PhpMimeType

A PHP library to detect the mime type of files.

  Sources   Download

MIT

The Development Requires

by Kat Zien

php mimetype