PHPackages                             kduma/file-hasher - 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. kduma/file-hasher

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

kduma/file-hasher
=================

MD5 and SHA1 file hash calculator and checker

v2.0(5y ago)22732MITPHPPHP &gt;=7.4

Since Dec 2Pushed 9mo ago1 watchersCompare

[ Source](https://github.com/kduma-OSS/PHP-file-hasher)[ Packagist](https://packagist.org/packages/kduma/file-hasher)[ RSS](/packages/kduma-file-hasher/feed)WikiDiscussions master Synced 3w ago

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

PHP file hasher
===============

[](#php-file-hasher)

[![Latest Version on Packagist](https://camo.githubusercontent.com/e021cbaa9f6589baf45ef0bfafddf8c84230756d91eada3530ef37fe1e4ee3a8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6b64756d612f66696c652d6861736865722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/kduma/file-hasher)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/829c6e805c8ae8ab4b9d338c4ad39ff1d67eaf4ee18b4c45b5f5fa8782beadf5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6b64756d612f66696c652d6861736865722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/kduma/file-hasher)[![StyleCI](https://camo.githubusercontent.com/5135f9d2c68df8364645a4be1187114922c52402ba07e5b297121e498c8b1de7/68747470733a2f2f7374796c6563692e696f2f7265706f732f37353431303935352f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/75410955)

MD5 and SHA1 file hash calculator and checker

Check full documentation here: [opensource.duma.sh/libraries/php/file-hasher](https://opensource.duma.sh/libraries/php/file-hasher)

Install
-------

[](#install)

Via Composer

```
$ composer require kduma/file-hasher
```

Usage
-----

[](#usage)

```
use KDuma\FileHasher\Checker;
use KDuma\FileHasher\Hasher;

var_dump(Hasher::file('test.php'));
var_dump(Checker::file('test.php.ph'));
```

Credits
-------

[](#credits)

- [Krystian Duma](https://github.com/kduma)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance40

Moderate activity, may be stable

Popularity16

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity65

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

Total

3

Last Release

1950d ago

Major Versions

v1.1 → v2.02021-02-25

### Community

Maintainers

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

---

Top Contributors

[![kduma](https://avatars.githubusercontent.com/u/1062582?v=4)](https://github.com/kduma "kduma (11 commits)")

---

Tags

file-hasherphp

### Embed Badge

![Health badge](/badges/kduma-file-hasher/health.svg)

```
[![Health](https://phpackages.com/badges/kduma-file-hasher/health.svg)](https://phpackages.com/packages/kduma-file-hasher)
```

###  Alternatives

[sorich87/bootstrap-tour

Show people how to use your web site

4.4k301.4k](/packages/sorich87-bootstrap-tour)[czdb/searcher

A PHP library for efficient IP geolocation using compact database formats.

285.2k1](/packages/czdb-searcher)[vkcom/kphp-polyfills

PHP implementations of functions supported by KPHP natively

163.3k7](/packages/vkcom-kphp-polyfills)

PHPackages © 2026

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