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

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

baraja-core/mime-type
=====================

Rewrite file extension to mime type.

v1.0.1(4y ago)11.6k[1 PRs](https://github.com/baraja-core/mime-type/pulls)PHPPHP ^8.0

Since May 2Pushed 2y ago1 watchersCompare

[ Source](https://github.com/baraja-core/mime-type)[ Packagist](https://packagist.org/packages/baraja-core/mime-type)[ Docs](https://github.com/baraja-core/mime-type)[ RSS](/packages/baraja-core-mime-type/feed)WikiDiscussions main Synced today

READMEChangelog (2)Dependencies (7)Versions (6)Used By (0)

File Mime type
==============

[](#file-mime-type)

Rewrite file extension to mime type.

📦 Installation
--------------

[](#-installation)

It's best to use [Composer](https://getcomposer.org) for installation, and you can also find the package on [Packagist](https://packagist.org/packages/baraja-core/mime-type) and [GitHub](https://github.com/baraja-core/mime-type).

To install, simply use the command:

```
$ composer require baraja-core/mime-type
```

You can use the package manually by creating an instance of the internal classes, or register a DIC extension to link the services directly to the Nette Framework.

📄 License
---------

[](#-license)

`baraja-core/mime-type` is licensed under the MIT license. See the [LICENSE](https://github.com/baraja-core/template/blob/master/LICENSE) file for more details.

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

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

Total

2

Last Release

1488d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3382204?v=4)[baraja](/maintainers/baraja)[@baraja](https://github.com/baraja)

---

Top Contributors

[![janbarasek](https://avatars.githubusercontent.com/u/4738758?v=4)](https://github.com/janbarasek "janbarasek (9 commits)")

---

Tags

filefilesystemmimemime-typephptype

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[junohamburg/kirby-reload-on-save

Kirby Reload On Save

293.4k](/packages/junohamburg-kirby-reload-on-save)

PHPackages © 2026

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