PHPackages                             cedricziel/stupidmime - 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. cedricziel/stupidmime

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

cedricziel/stupidmime
=====================

Stupid mime detection.

0.0.2(10y ago)0819MITPHP

Since Dec 10Pushed 10y ago1 watchersCompare

[ Source](https://github.com/cedricziel/stupidmime)[ Packagist](https://packagist.org/packages/cedricziel/stupidmime)[ RSS](/packages/cedricziel-stupidmime/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (3)Used By (0)

stupidmime
==========

[](#stupidmime)

Stupid mime detection for limited PHP environments like Google AppEngine Sandbox.

What does it do?
----------------

[](#what-does-it-do)

This contains a simple helper function `get_file_mime_type` which accepts a file location string like `/foo/bar.jpg` and it will guess the mime type via the file extension.

It will use the php module `fileinfo` if present. If not, it will guess with a simple internal table.

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

[](#installation)

```
composer require cedricziel/stupidmime

```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

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

3856d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2ac8297e12671d91305ec01ab56add8cb141fa82d678ba96f0012eeb7f88ea0c?d=identicon)[cedricziel](/maintainers/cedricziel)

---

Top Contributors

[![cedricziel](https://avatars.githubusercontent.com/u/418970?v=4)](https://github.com/cedricziel "cedricziel (7 commits)")

### Embed Badge

![Health badge](/badges/cedricziel-stupidmime/health.svg)

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

###  Alternatives

[helgesverre/extractor

AI-Powered Data Extraction for your Laravel application.

22333.1k](/packages/helgesverre-extractor)[sintret/yii2-gii-adminlte

Yii2 Generator extension for Gii plugin with adminlte and base on dynagrid. upload excel to system to with log upload

209.6k2](/packages/sintret-yii2-gii-adminlte)

PHPackages © 2026

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