PHPackages                             ottosmops/hash - 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. ottosmops/hash

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

ottosmops/hash
==============

create and verify hash files (manifests)

v1.2.0(5y ago)1121[1 issues](https://github.com/ottosmops/hash/issues)MITPHPPHP &gt;=7.1CI failing

Since Jan 21Pushed 5y ago1 watchersCompare

[ Source](https://github.com/ottosmops/hash)[ Packagist](https://packagist.org/packages/ottosmops/hash)[ Docs](https://github.com/ottosmops/hash)[ RSS](/packages/ottosmops-hash/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (1)Dependencies (2)Versions (5)Used By (0)

Create and verify a hash manifest
=================================

[](#create-and-verify-a-hash-manifest)

[![Software License](https://camo.githubusercontent.com/942e017bf0672002dd32a857c95d66f28c5900ab541838c6c664442516309c8a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Latest Stable Version](https://camo.githubusercontent.com/324a06f7cebdc26f21c3d236e82af61762e8c9b9ce5c1356661cf20e6e90d33c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f56657273696f6e2d737461626c652d626c75652e7376673f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/ottosmops/hash)[![Build Status](https://camo.githubusercontent.com/51c785f3d30fffd889421e775fcc6c6d801ef561d63ea472951fcbea38a22a3c/68747470733a2f2f7472617669732d63692e636f6d2f6f74746f736d6f70732f686173682e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/ottosmops/hash)[![SensioLabsInsight](https://camo.githubusercontent.com/54292295457752b2761423ed53981417d5c5897d8dccfbd577f9af41a1ad93e6/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f32343864623862332d343936392d343863352d396136312d3963373334363833326666302f6d696e692e706e67)](https://insight.sensiolabs.com/projects/248db8b3-4969-48c5-9a61-9c7346832ff0)[![Packagist Downloads](https://camo.githubusercontent.com/03d02668cca190113f8458b6abfa34195e953eeeef7433f9a0f9316e1b9cbe57/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6f74746f736d6f70732f686173682e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ottosmops/hash)

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

[](#installation)

```
composer require ottosmops/hash
```

Usage
-----

[](#usage)

```
use Ottosmops\Hash\Hash;

$hash = New Hash(); // you can pass an algorithm into the constructor
$hash->createManifest($dir);
if (!$hash->verifyManifest($dir . 'manifest')) {
    print_r($this->messages);
} else {
    echo  sprintf('All files in %s have correct checksums ', $hash->manifest);
}
```

You can pass a filename to the `createManifest` method. The filename must be a path relative to the dir. With the third parameter you can switch off the recursive directory iterator. No subdirectories will be scanned:

```
$md5 = New Hash();
$md5->createManifest($dir, "myfilename", false);
```

License
-------

[](#license)

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

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 77.8% 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 ~175 days

Total

4

Last Release

2145d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/76f31e7e6772db47a91388ed82840fae1fa57185bb82a64924bb3839697222c2?d=identicon)[ottosmops](/maintainers/ottosmops)

---

Top Contributors

[![ottosmops](https://avatars.githubusercontent.com/u/4144389?v=4)](https://github.com/ottosmops "ottosmops (7 commits)")[![peter279k](https://avatars.githubusercontent.com/u/9021747?v=4)](https://github.com/peter279k "peter279k (2 commits)")

---

Tags

laravelhashchecksumantonottosmops

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/ottosmops-hash/health.svg)

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

###  Alternatives

[torann/hashids

Laravel package for Hashids

54335.1k](/packages/torann-hashids)

PHPackages © 2026

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