PHPackages                             bermudaphp/detector - 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. bermudaphp/detector

ActiveLibrary

bermudaphp/detector
===================

v1.0.5(3y ago)0692MITPHPPHP ^8.0|^8.1

Since Jan 17Pushed 3y agoCompare

[ Source](https://github.com/bermudaphp/detector)[ Packagist](https://packagist.org/packages/bermudaphp/detector)[ RSS](/packages/bermudaphp-detector/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (5)Dependencies (2)Versions (6)Used By (2)

Install
=======

[](#install)

```
composer require bermudaphp/detector
```

Usage
=====

[](#usage)

```
$detector = new FinfoDetector;

$detector->detectMimeType(file_get_contents('index.html')) // text/html;
$detector->detectExtension(file_get_contents('index.html')) // html;

$detector->detectFileMimeType('index.html') // text/html;
$detector->detectFileExtension('index.html') // html;
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity62

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

Total

5

Last Release

1141d ago

PHP version history (2 changes)v1.0PHP ^8.0.0

v1.0.1PHP ^8.0|^8.1

### Community

Maintainers

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

---

Top Contributors

[![Shelamkoff](https://avatars.githubusercontent.com/u/20490712?v=4)](https://github.com/Shelamkoff "Shelamkoff (35 commits)")

### Embed Badge

![Health badge](/badges/bermudaphp-detector/health.svg)

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

###  Alternatives

[az-digital/az_quickstart

Arizona Quickstart

50234.3k2](/packages/az-digital-az-quickstart)

PHPackages © 2026

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