PHPackages                             vnappmob/ext-mime-type - 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. vnappmob/ext-mime-type

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

vnappmob/ext-mime-type
======================

Custom MIME Content Type

1.0.4(1y ago)0196MITPHP

Since Mar 29Pushed 1y ago1 watchersCompare

[ Source](https://github.com/vnappmob/ext-mime-type)[ Packagist](https://packagist.org/packages/vnappmob/ext-mime-type)[ RSS](/packages/vnappmob-ext-mime-type/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)DependenciesVersions (5)Used By (0)

Helper to get MIME type in PHP
==============================

[](#helper-to-get-mime-type-in-php)

The current PHP `mime_content_type` returns the MIME content type for a file as determined by using information from the magic.mime file. It might be `text/plain` for file type like css or javascript

This implementation using a map/dictionary of file extension to parse file type content (Original from [svogal](https://www.php.net/manual/en/function.mime-content-type.php#87856))

Usage
-----

[](#usage)

```
require_once __DIR__ . '/vendor/autoload.php';

$file_path = './path/to/file.js';
$mime_type = VNAppMob\ExtMimeType::getMimeContentType($file_path);
...
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance36

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

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

Total

4

Last Release

624d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/aac8803738fbf583fc19caa8210c600935ecb0065079a4265a5a779b890dac12?d=identicon)[vnappmob](/maintainers/vnappmob)

---

Top Contributors

[![ltdangkhoa](https://avatars.githubusercontent.com/u/9378003?v=4)](https://github.com/ltdangkhoa "ltdangkhoa (8 commits)")

### Embed Badge

![Health badge](/badges/vnappmob-ext-mime-type/health.svg)

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

###  Alternatives

[spiral/mcp-server

Spiral bridge for MCP server

541.1k2](/packages/spiral-mcp-server)

PHPackages © 2026

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