PHPackages                             codervio/filesignature - 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. [Framework](/categories/framework)
4. /
5. codervio/filesignature

ActiveLibrary[Framework](/categories/framework)

codervio/filesignature
======================

Codervio Filesignature

1.0.x-dev(7y ago)031MITPHPPHP ^7.1CI failing

Since Aug 25Pushed 4y ago1 watchersCompare

[ Source](https://github.com/Codervio/Filesignature)[ Packagist](https://packagist.org/packages/codervio/filesignature)[ Docs](http://codervio.com)[ RSS](/packages/codervio-filesignature/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (2)Versions (1)Used By (1)

Filesignature
=============

[](#filesignature)

[![Latest Version on Packagist](https://camo.githubusercontent.com/0d146a6f7ae02c4236ee55368ffa727523457d7610abf405f9a965d0e59615d7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636f64657276696f2f66696c657369676e61747572652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/codervio/filesignature)[![Build Status](https://camo.githubusercontent.com/5dac549af0f21244089868d4d2dc433f6c44445772fcbaf1d720e393c549bd0f/68747470733a2f2f7472617669732d63692e6f72672f436f64657276696f2f46696c657369676e61747572652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Codervio/Filesignature)[![Join the chat at https://gitter.im/Codervio/Filesignature](https://camo.githubusercontent.com/dcfdb823f39f6cb3bf4e033dc99055ab03b9624b72c6e78e50ecb857a3b7b3da/68747470733a2f2f6261646765732e6769747465722e696d2f436f64657276696f2f46696c657369676e61747572652e737667)](https://gitter.im/Codervio/Filesignature?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

A `Filesignature` detects mime type, extension and type of file by reading a headers from a file.

It is possible to guess mime type, extension, vendor name and mime type using input arguments function.

Donations
---------

[](#donations)

Due I am working 100% alone without any helps, organizations and any others team I can be satisfy for receiving any amount of payment to improve, develop and continue building on origin idea of framework.

You can pay any amount to PayPal: [https://www.paypal.me/codervio?locale.x=en\_US](https://www.paypal.me/codervio?locale.x=en_US)

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

[](#installation)

1. Installation via [Composer](http://www.composer.org) on [Packagist](https://packagist.org/packages/codervio/filesignature)
2. Installation using [Git](http://www.github.com) GIT clone component

Changelog
---------

[](#changelog)

Status of core:

VersionState`1.0`Release versionPHP version above `7.1`. Quality assurance: Unit tests provided

#### References

[](#references)

- \[`Filesignature`\] - A filesignature constructor

Fetching a result:

- \[`getVendor()`\] - Fetch a vendor by file
- \[`getExtension()`\] - Get an extension type
- \[`getMime()`\] - Get an extension type
- \[`getSignature()`\] - Get a file signature headers
- \[`getVendor()`\] - Fetch a vendor by file
- \[`getArrayResult()`\] - Returns result as array

Guess by input arguments:

- \[`recognizeByMime()`\] - Return a result from mime type
- \[`recognizeByExtension()`\] - Return a result from extension name

[![FOSSA Status](https://camo.githubusercontent.com/5a89a3ea30ec69f31b20bf2abcfc41089b84df33d06e14f871a1bb250c3cc82b/68747470733a2f2f6170702e666f7373612e636f6d2f6170692f70726f6a656374732f6769742532426769746875622e636f6d253246436f64657276696f25324646696c657369676e61747572652e7376673f747970653d6c61726765)](https://app.fossa.com/projects/git%2Bgithub.com%2FCodervio%2FFilesignature?ref=badge_large)

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

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

Unknown

Total

1

Last Release

2821d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b2b075bde7d995e6dd314779598f63feeaf0ba3fa32c2ee6f493613c62a8a3cf?d=identicon)[marinsagovac](/maintainers/marinsagovac)

---

Top Contributors

[![marinsagovac](https://avatars.githubusercontent.com/u/8504733?v=4)](https://github.com/marinsagovac "marinsagovac (6 commits)")

---

Tags

filefile-extensionsfileheaderfilesignaturefilesystemmimesignaturephpframeworkmimefilefilesfilesignature

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/codervio-filesignature/health.svg)

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

PHPackages © 2026

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