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

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

metasyntactical/symfony-mime
============================

Helper component for hooking metasyntactical/mime into Symfony2 File Validation

1.1.0(6y ago)168MITPHPPHP ~7.2|~7.3|~7.4|~8.0

Since Sep 10Pushed 6y ago1 watchersCompare

[ Source](https://github.com/MetaSyntactical/symfony-mime)[ Packagist](https://packagist.org/packages/metasyntactical/symfony-mime)[ Docs](http://syntactical-sugar.com/projects/symfony-mime)[ RSS](/packages/metasyntactical-symfony-mime/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (4)Versions (4)Used By (0)

README
======

[](#readme)

[![Build Status](https://camo.githubusercontent.com/3c43c6b5f48ed8cfe1413ce3a181a4c4b8df8e5053fcf0548a8359e861429605/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f4d65746153796e746163746963616c2f73796d666f6e792d6d696d652e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/MetaSyntactical/symfony-mime)

What is MetaSyntactical/symfony-mime?
-------------------------------------

[](#what-is-metasyntacticalsymfony-mime)

MetaSyntactical/symfony-mime is a tie-in component to use the MetaSyntactical/Mime MIME type detection in Symfony2 File Validation.

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

[](#requirements)

MetaSyntactical/symfony-mime is only supported on PHP 5.3.10 and up.

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

[](#installation)

The best way to install MetaSyntactical/symfony-mime is to use Composer (). Add the following part to your composer.json and run php composer.phar install`:

```
{
    "require": {
        "metasyntactical/symfony-mime": "dev-master"
    }
}

```

Documentation
-------------

[](#documentation)

It is easy to add MIME type detection to Symfony2 File Validation. Just use the following code snippet (assuming you have installed MetaSyntactical/symfony-mime with composer):

```
use Symfony\Component\HttpFoundation\File\MimeType\MimeTypeGuesser;
use MetaSyntactical\Symfony\Component\HttpFoundation\File\MimeType\PhpMimeTypeGuesser;

MimeTypeGuesser::getInstance()->register(new PhpMimeTypeGuesser);

```

Afterwards the MetaSyntactical/Mime MIME type detection will be used in File's mimeType validation.

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

[](#contributing)

COMING SOON MetaSyntactical/symfony-mime is an open source project. If you'd like to contribute, please read the [Contributing Code](http://syntactical-sugar.com/doc/symfony-mime/current/contributing/code/index.html) part of the documentation. If you're submitting a pull request, please follow the guidelines in the [Submitting a Patch](http://syntactical-sugar.com/doc/symfony-mime/current/contributing/code/patches.html#check-list) section.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity70

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 ~2761 days

Total

2

Last Release

2230d ago

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

1.1.0PHP ~7.2|~7.3|~7.4|~8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/59dfdaddf6da9851c4af1ef88da592dc5386554d2ea441806f3d926786b6d01b?d=identicon)[dkreuer](/maintainers/dkreuer)

---

Top Contributors

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

---

Tags

symfonyvalidationmimelibrarycomponenttie-in

### Embed Badge

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

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

###  Alternatives

[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[sensiolabs/gotenberg-bundle

A Symfony bundle that provides seamless integration with Gotenberg for generating PDFs and screenshots from various sources (HTML, Markdown, Office documents, URLs) with a clean, builder-based API.

210210.4k2](/packages/sensiolabs-gotenberg-bundle)[railsware/mailtrap-php

The Mailtrap SDK provides methods for all API functions.

56770.5k](/packages/railsware-mailtrap-php)[xobotyi/php-mime-type

A comprehensive MIME-types lib for PHP.

317.2k](/packages/xobotyi-php-mime-type)

PHPackages © 2026

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