PHPackages                             kaihempel/simplehash - 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. kaihempel/simplehash

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

kaihempel/simplehash
====================

Basic hash library

1.0.1(10y ago)1581BSD-3-ClausePHPPHP &gt;=5.4.0

Since Jul 12Pushed 10y ago1 watchersCompare

[ Source](https://github.com/kaihempel/simplehash)[ Packagist](https://packagist.org/packages/kaihempel/simplehash)[ Docs](https://dev.kuweh.de/)[ RSS](/packages/kaihempel-simplehash/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (2)Versions (3)Used By (1)

simplehash
==========

[](#simplehash)

Simple PHP hash bundle

[![Build Status](https://camo.githubusercontent.com/75f3f73456ee643ed0e2b5a6913095915935d1f8fe6b537eb6ae8f558c81bb59/68747470733a2f2f7472617669732d63692e6f72672f6b616968656d70656c2f73696d706c65686173682e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/kaihempel/simplehash)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/336a706f74d9a9ebc09a6c6b1ab86843a4d3b62495b6c253112afb71d452b9fc/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6b616968656d70656c2f73696d706c65686173682f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/kaihempel/simplehash/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/df560ac214a9857ec0e04f789068dd5c18f3f677fe47017535286620c12e6052/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6b616968656d70656c2f73696d706c65686173682f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/kaihempel/simplehash/?branch=master)

This is a basic hash generation bundle. The generation of the hash strings is encapsulated behind a facade for easy usage. Actually only string hashes are supported!

Installing *SimpleHash* via Composer:

```
  "require": {
    "kaihempel/simplehash": "1.0.*"
  }
```

Usage in your sourcecode:

```
  // 7a9eec69d1a8669857169fd357abece5
  $hashMd5 = Hash::Md5('TEST_MD5');

  // 3176e209d14330f16662eb9986d64062648b68f2
  $hashSHA1 = Hash::Sha1('TEST_SHA1');

  // $2y$10$Af13GgKoL503sCvf42dJ1uRdAbA9eaFajPkCIQ0mvpi.LAYCAILs.
  $hashBcrypt = Hash::Bcrypt('TEST_BCRYPT', 10, 'AbCdEfGhJkLmNoPQrStUv');
```

The hash facade returns the container object "HashContainer". This container can be used by the implementend interface. Tow methods are available:

- getHashString()
- setHashString($hashString)

The container all so implements "\_\_toSrting()" so the container can be used directly for comparison.

```
  if ($hashMd5 == "7a9eec69d1a8669857169fd357abece5") // true
```

###  Health Score

27

—

LowBetter than 46% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

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

Total

2

Last Release

3685d ago

### Community

Maintainers

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

---

Top Contributors

[![kaihempel](https://avatars.githubusercontent.com/u/7288789?v=4)](https://github.com/kaihempel "kaihempel (40 commits)")

---

Tags

hash calculation

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/kaihempel-simplehash/health.svg)

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

###  Alternatives

[kmlaravel/laravel-geographical-calculator

laravel package help you to implement geographical calculation, with With several algorithms that help you deal with coordinates

42685.5k2](/packages/kmlaravel-laravel-geographical-calculator)[xantios/mimey

PHP package for converting file extensions to MIME types and vice versa.

333.0M29](/packages/xantios-mimey)[eliashaeussler/typo3-solver

Solver - Extends TYPO3's exception handling with AI generated solutions. Problems can also be solved from command line. Several OpenAI parameters are configurable and prompts and solution providers can be customized as desired.

302.1k](/packages/eliashaeussler-typo3-solver)

PHPackages © 2026

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