PHPackages                             metasyntactical/mime - 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. metasyntactical/mime

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

metasyntactical/mime
====================

The MetaSyntactical MIMEtype detection component

v3.0.0(4y ago)51.2k1[1 PRs](https://github.com/MetaSyntactical/Mime/pulls)1MITPHPPHP 8.0.\*

Since Sep 10Pushed 1y ago1 watchersCompare

[ Source](https://github.com/MetaSyntactical/Mime)[ Packagist](https://packagist.org/packages/metasyntactical/mime)[ RSS](/packages/metasyntactical-mime/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (4)Dependencies (5)Versions (9)Used By (1)

README
======

[](#readme)

[![Build Status](https://camo.githubusercontent.com/fe3ca5eac623f91b8e8d19da4529976b19e2f6cbb6e715e62eccd353bd0bf4d6/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f4d65746153796e746163746963616c2f4d696d652e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/MetaSyntactical/Mime)

What is MetaSyntactical/Mime?
-----------------------------

[](#what-is-metasyntacticalmime)

MetaSyntactical/Mime is part of the MetaSyntactical PHP 5.6+ components library and provide a system independent implementation of the magic.mime MIMEtype detection.

MetaSyntactical/Mime is based on the [Zend Framework proposal](http://framework.zend.com/wiki/x/9lI) for Zend\_Mime\_Magic of Matthew Ratzloff and the derived implementation as [Google Code project](http://code.google.com/p/php-reader/)of Sven Vollbehr. I have transformed the code to use namespaces, better exception handling and added unit tests.

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

[](#requirements)

MetaSyntactical/Mime is only supported on PHP 5.6.28 and up.

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

[](#installation)

The best way to install MetaSyntactical/Mime is to use Composer ().

Contributing
------------

[](#contributing)

MetaSyntactical/Mime is an open source project.

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance29

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity73

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~648 days

Recently: every ~557 days

Total

6

Last Release

1796d ago

Major Versions

1.0.1 → v2.0.02017-04-22

2.x-dev → v3.0.02021-07-29

PHP version history (4 changes)1.0.0PHP &gt;=5.3.10

v2.0.0PHP &gt;=5.6.28, &lt;7.2.0

2.1.0PHP ~7.2|~7.3|~7.4

v3.0.0PHP 8.0.\*

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/461576?v=4)[Daniel Kreuer](/maintainers/dkreuer)[@dkreuer](https://github.com/dkreuer)

---

Top Contributors

[![dkreuer](https://avatars.githubusercontent.com/u/461576?v=4)](https://github.com/dkreuer "dkreuer (23 commits)")

---

Tags

mimelibrary

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/metasyntactical-mime/health.svg)

```
[![Health](https://phpackages.com/badges/metasyntactical-mime/health.svg)](https://phpackages.com/packages/metasyntactical-mime)
```

###  Alternatives

[symfony/mime

Allows manipulating MIME messages

2.8k700.2M1.2k](/packages/symfony-mime)[zbateson/mail-mime-parser

MIME email message parser

54651.9M86](/packages/zbateson-mail-mime-parser)[php-mime-mail-parser/php-mime-mail-parser

A fully tested email parser for PHP 8.2+ (mailparse extension wrapper).

99310.1M35](/packages/php-mime-mail-parser-php-mime-mail-parser)[nette/mail

📧 Nette Mail: A handy library for creating and sending emails in PHP.

49310.1M268](/packages/nette-mail)[zbateson/stream-decorators

PHP psr7 stream decorators for mime message part streams

4751.2M7](/packages/zbateson-stream-decorators)[dflydev/apache-mime-types

Apache MIME Types

702.0M37](/packages/dflydev-apache-mime-types)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
