PHPackages                             basteyy/minimal-hash-wrapper - 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. basteyy/minimal-hash-wrapper

ActiveLibary

basteyy/minimal-hash-wrapper
============================

A minimal (static) class for hashing and verifying passwords

1.0.1(2y ago)1711PHP

Since Feb 10Pushed 2y ago1 watchersCompare

[ Source](https://github.com/basteyy/minimal-hash-wrapper)[ Packagist](https://packagist.org/packages/basteyy/minimal-hash-wrapper)[ RSS](/packages/basteyy-minimal-hash-wrapper/feed)WikiDiscussions master Synced today

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

minimal-hash-wrapper
====================

[](#minimal-hash-wrapper)

A minimal (static) class for hashing and verifying passwords

Setup
-----

[](#setup)

```
composer require basteyy/minimal-hash-wrapper
```

Usage
-----

[](#usage)

Create the hash of a password

```
$userPassword = 'foobar';
$userPasswordHashed = \basteyy\MinimalHashWrapper\MinimalHashWrapper::getHash($userPassword);
```

Compare hash and a password

```
if(\basteyy\MinimalHashWrapper\MinimalHashWrapper::compare(
    $_POST['password'], // From a form for example
    $user->password // From a database for example
)) {
    echo 'Password was correct. Welcome back user!';
} else {
    echo 'Okay cowboy .. something is wrong';
}
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity56

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

Total

2

Last Release

906d ago

### Community

Maintainers

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

---

Top Contributors

[![basteyy](https://avatars.githubusercontent.com/u/2758879?v=4)](https://github.com/basteyy "basteyy (6 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/basteyy-minimal-hash-wrapper/health.svg)

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

PHPackages © 2026

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