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

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

eggbe/hash-store
================

File-based library for easy manage a list of hashes

1111PHP

Since Feb 23Pushed 6y ago1 watchersCompare

[ Source](https://github.com/eggbe/hash-store)[ Packagist](https://packagist.org/packages/eggbe/hash-store)[ RSS](/packages/eggbe-hash-store/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Introduction
------------

[](#introduction)

The mission of this library - provide the easiest way to create and manage a list of hashes.

Features
--------

[](#features)

The library is file-based, so it doesn't require any databases.

Requirements
------------

[](#requirements)

- PHP &gt;= 7.0.0
- [Able/Helpers](https://github.com/phpable/helpers)

Install
-------

[](#install)

There's the simple way to install the `Eggbe/HashStore` package via [composer](http://getcomposer.org):

```
composer require eggbe/hash-store
```

\##Configuration Please, follow the example below:

```
$HashStore = new \Eggbe\HashStore\HashStore([
	'path' => 'path-to-storage-directory',
	'sort' => HashStore::BY_DATE | HashStore::BY_DESC,
	'filter' => '^.{0,32}$',
]);
```

The `path` option defines the directory to store all generated files. Please, be sure that directory exists and writable, or you risk to get an exception otherwise.

The `sort` option specifies the sorting and can take the combination of binary flags. Currently, you can choose the sorting by alphabet or by creation date in direct and reverse order.

The `filter` option set the regular expression for keywords syntax checking. If any given keyword doesn't match this expression, the exception will be thrown.

Usage
-----

[](#usage)

You have to use the following method to create and add new hash into storage:

```
$HashStore->create('keyword');
```

Also, you always can view all existing hashes via the following code:

```
foreach($HashStore->all() as $keyword => $content){
	echo $keyword . ' ' . $content;
}
```

The following method helps you to find any hash by a keyword:

```
$hash = $HashStore->find('keyword');
```

But if you need to get a keyword by a hash so it also possible:

```
$keyword = $HashStore->search('a2f51b04c9a31cd2defc4d3550eecb71');
```

Of course you can remove any hash if you really need:

```
$HashStore->remove('keyword');
```

Unfortunately currently this library support only md5 hashes usage but we have plans to extend of the functionality. We will keep you in touch!

\##Limitation Currently, the only md5 hashes are supported.

License
-------

[](#license)

This package is released under the [MIT license](https://github.com/eggbe/hash-store/blob/master/LICENSE).

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/0e7980486450f7ae6c622ae5499ed59ee231673ebf27f7f18bb204846cd9bf84?d=identicon)[eggbe](/maintainers/eggbe)

### Embed Badge

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

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

###  Alternatives

[components/mathjs

Math.js is an extensive math library for JavaScript and Node.js. It features a flexible expression parser with support for symbolic computation, comes with a large set of built-in functions and constants, and offers an integrated solution to work with different data types like numbers, big numbers, complex numbers, fractions, units, and matrices.

15.0k3.9k](/packages/components-mathjs)

PHPackages © 2026

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