PHPackages                             vuthaihoc/fast\_mime - 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. vuthaihoc/fast\_mime

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

vuthaihoc/fast\_mime
====================

v2.0.0(1y ago)033PHPPHP ^8.0

Since Oct 2Pushed 1y ago1 watchersCompare

[ Source](https://github.com/vuthaihoc/fast_mime)[ Packagist](https://packagist.org/packages/vuthaihoc/fast_mime)[ RSS](/packages/vuthaihoc-fast-mime/feed)WikiDiscussions master Synced yesterday

READMEChangelog (3)Dependencies (2)Versions (4)Used By (0)

Detect Mimetype of file, url
============================

[](#detect-mimetype-of-file-url)

- Phát hiện định dạng file sử dụng MagicNumber
- Phát hiện định dạng file được tải xuống từ url ưu tiên sử dụng header trả về

Usage
=====

[](#usage)

Install
-------

[](#install)

```
composer require vuthaihoc/fast_mime

```

Usage
-----

[](#usage-1)

- Từ file

```
$file = "sample.pdf";
$detected = FileSignalDetector::detectByFile($file) // output ["document","pdf","application/pdf"]
```

- Từ URL

```
$file = "http://file.fyicenter.com/b/sample.ods";
$ext = "ods";
$mime = "application/vnd.oasis.opendocument.spreadsheet";
$mimetype = (new UrlFastMime())->getMime( $file );
```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance36

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

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

Total

3

Last Release

593d ago

Major Versions

v1.0.1 → v2.0.02024-09-26

PHP version history (2 changes)v1.0.0PHP ^7.2

v2.0.0PHP ^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2509658?v=4)[Stupid Dev](/maintainers/vuthaihoc)[@vuthaihoc](https://github.com/vuthaihoc)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/vuthaihoc-fast-mime/health.svg)

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

###  Alternatives

[shlinkio/shlink

A self-hosted and PHP-based URL shortener application with CLI and REST interfaces

4.8k4.3k](/packages/shlinkio-shlink)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[dhlparcel/magento2-plugin

DHL Parcel plugin for Magento 2

11180.5k2](/packages/dhlparcel-magento2-plugin)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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