PHPackages                             emgag/flysystem-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. [File &amp; Storage](/categories/file-storage)
4. /
5. emgag/flysystem-hash

AbandonedArchivedLibrary[File &amp; Storage](/categories/file-storage)

emgag/flysystem-hash
====================

Flysystem plugin for generating a hash value of a given file

v1.0.4(5y ago)14171.1k—5.4%17MITPHPPHP ^7.3 || ^8.0

Since Sep 28Pushed 5y ago2 watchersCompare

[ Source](https://github.com/emgag/flysystem-hash)[ Packagist](https://packagist.org/packages/emgag/flysystem-hash)[ Docs](https://github.com/emgag/flysystem-hash)[ RSS](/packages/emgag-flysystem-hash/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (3)Versions (5)Used By (7)

Flysystem Plugin for generating hash value of file
==================================================

[](#flysystem-plugin-for-generating-hash-value-of-file)

[![build](https://github.com/emgag/flysystem-hash/workflows/build/badge.svg)](https://github.com/emgag/flysystem-hash/workflows/build/badge.svg)[![Software License](https://camo.githubusercontent.com/074b89bca64d3edc93a1db6c7e3b1636b874540ba91d66367c0e5e354c56d0ea/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e737667)](LICENSE)[![Packagist Version](https://camo.githubusercontent.com/acb44eb9b8b5be5d5a03fae039b76e8c5b8d3097c34bd20eef3b944766bcc980/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f656d6761672f666c7973797374656d2d686173682e737667)](https://packagist.org/packages/emgag/flysystem-hash)

**NOTE: Plugins were [removed in Flysystem 2.0](https://flysystem.thephpleague.com/v2/docs/what-is-new/) and thus this library is only available for Flysystem 1.x.**

A plugin for the [Flysystem](https://github.com/thephpleague/flysystem) file system abstraction library to generate hash values of a file. See [hash\_algos()](http://php.net/manual/en/function.hash-algos.php) function for supported hash algorithms.

Tested with [Local](http://flysystem.thephpleague.com/adapter/local/) and [WebDav](http://flysystem.thephpleague.com/adapter/webdav/) adapters, but as the hash is built directly from the stream resource it should work for all other adapters as well.

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

[](#installation)

```
composer require emgag/flysystem-hash
```

Usage
-----

[](#usage)

```
use Emgag\Flysystem\Hash\HashPlugin;
use League\Flysystem\Adapter\Local;
use League\Flysystem\Filesystem;

$fs = new Filesystem(new Local(__DIR__));
$fs->addPlugin(new HashPlugin);

// sha256 is default
$sha256 = $fs->hash('file.txt');
$sha256 = $fs->hash('file.txt', 'sha256');
$md5    = $fs->hash('file.txt', 'md5');
$sha1   = $fs->hash('file.txt', 'sha1');
```

License
-------

[](#license)

flysystem-hash is licensed under the [MIT License](http://opensource.org/licenses/MIT).

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity39

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity71

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

Total

4

Last Release

1872d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/35a34580a28286ae22173cc8f34f42699d846067c976e8e39fdc23b8ad0cf44a?d=identicon)[emgag](/maintainers/emgag)

---

Top Contributors

[![maetthu](https://avatars.githubusercontent.com/u/1193955?v=4)](https://github.com/maetthu "maetthu (18 commits)")

---

Tags

digestflysystemflysystem-pluginhashphppluginFlysystemhashMD5sha256sha1

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[league/flysystem-aws-s3-v3

AWS S3 filesystem adapter for Flysystem.

1.6k263.6M790](/packages/league-flysystem-aws-s3-v3)[league/flysystem-local

Local filesystem adapter for Flysystem.

225231.8M39](/packages/league-flysystem-local)[oneup/flysystem-bundle

Integrates Flysystem filesystem abstraction library to your Symfony project.

64422.9M66](/packages/oneup-flysystem-bundle)[league/flysystem-bundle

Symfony bundle integrating Flysystem into Symfony applications

40129.5M87](/packages/league-flysystem-bundle)[league/flysystem-sftp-v3

SFTP filesystem adapter for Flysystem.

6129.6M91](/packages/league-flysystem-sftp-v3)[spatie/flysystem-dropbox

Flysystem Adapter for the Dropbox v2 API

3644.6M68](/packages/spatie-flysystem-dropbox)

PHPackages © 2026

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