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

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

alirezax5/mime-type
===================

Work with mime types

1.0.1(5y ago)011MITPHPPHP &gt;=7.0

Since May 20Pushed 5y ago1 watchersCompare

[ Source](https://github.com/alirezax5/mime-type)[ Packagist](https://packagist.org/packages/alirezax5/mime-type)[ Docs](https://github.com/alirezax5/MimeType)[ RSS](/packages/alirezax5-mime-type/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

mime-type
=========

[](#mime-type)

[![php](https://camo.githubusercontent.com/6a6f39195e2842fe530a94aeb7e89380a9cd13794cd2ee2746d937c80db3ad42/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f50687025323056657273696f6e2d372d627269676874677265656e)](https://camo.githubusercontent.com/6a6f39195e2842fe530a94aeb7e89380a9cd13794cd2ee2746d937c80db3ad42/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f50687025323056657273696f6e2d372d627269676874677265656e)required
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

[](#required)

- PHP &gt;= 7

install : composer require alirezax5/mime-type

Examples
--------

[](#examples)

```

‎File Upload:‎
Select a file to upload: ‎
‎

    ‎‎
    ‎‎
    ‎‎

?>

```

Wiki : [click](https://github.com/alirezax5/mime-type/wiki/Start-Working-Whit-The-Source)

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

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

Total

2

Last Release

2186d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/20362833?v=4)[alireza x5](/maintainers/alirezax5)[@alirezax5](https://github.com/alirezax5)

---

Top Contributors

[![alirezax5](https://avatars.githubusercontent.com/u/20362833?v=4)](https://github.com/alirezax5 "alirezax5 (10 commits)")

---

Tags

mime-typemimetype

### Embed Badge

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

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

###  Alternatives

[wapmorgan/file-type-detector

Detects file type by filename or content and generates correct mimetype.

35367.8k2](/packages/wapmorgan-file-type-detector)[dfridrich/php-mime-type

Simple PHP class for guessing file mime type based on file extension with ability to use in Symfony project.

17274.8k3](/packages/dfridrich-php-mime-type)

PHPackages © 2026

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