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)15176.7k↓13.1%17MITPHPPHP ^7.3 || ^8.0

Since Sep 28Pushed 5y ago1 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 2d 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

41

—

FairBetter than 87% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity40

Moderate usage in the ecosystem

Community15

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

1917d 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.7k285.7M1.0k](/packages/league-flysystem-aws-s3-v3)[unisharp/laravel-filemanager

A file upload/editor intended for use with Laravel 5 to 10 and CKEditor / TinyMCE

2.2k3.5M85](/packages/unisharp-laravel-filemanager)[league/flysystem-bundle

Symfony bundle integrating Flysystem into Symfony applications

40432.5M136](/packages/league-flysystem-bundle)[barryvdh/elfinder-flysystem-driver

A Flysystem Driver for elFinder

1865.1M41](/packages/barryvdh-elfinder-flysystem-driver)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[masbug/flysystem-google-drive-ext

Flysystem adapter for Google Drive with seamless virtual&lt;=&gt;display path translation

2682.2M18](/packages/masbug-flysystem-google-drive-ext)

PHPackages © 2026

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