PHPackages                             xaamin/hashing - 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. [Security](/categories/security)
4. /
5. xaamin/hashing

ActiveLibrary[Security](/categories/security)

xaamin/hashing
==============

Password hashing

v1.0.3(9y ago)118MITPHPPHP &gt;=5.0.0

Since Nov 30Pushed 9y ago1 watchersCompare

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

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

Password Hasher
===============

[](#password-hasher)

### Installation

[](#installation)

Require the package using composer

```
    composer require xaamin/hashing

```

### Usage

[](#usage)

You may hash a password by calling the make method on Hash instance

```
    use Xaamin\Hashing\Hash;

    $password' => Hash::make('plain-text');

```

The check method allows you to verify that a given plain-text string corresponds to a given hash.

```
    if (Hash::check('plain-text', $hashedValue))
    {
        // The passwords match...
    }

```

By defautl this package uses the default PHP native hash implementation, it's the most secure way to hashing passwords and requires PHP 5 &gt;= 5.5.0. Anyway, if you have PHP 5 &lt; 5.5.0 you can use Bcrypt hashing algorithm. I suggest enable mcrypt or openssl PHP extension to generate secure random salt.

```
   Hash::setHasher(new Xaamin\Hashing\Strategies\BcryptHash);

```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

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

Total

2

Last Release

3636d ago

### Community

Maintainers

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

---

Top Contributors

[![xaamin](https://avatars.githubusercontent.com/u/4313256?v=4)](https://github.com/xaamin "xaamin (1 commits)")

---

Tags

passwordhash

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/xaamin-hashing/health.svg)

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

###  Alternatives

[ircmaxell/password-compat

A compatibility library for the proposed simplified password hashing algorithm: https://wiki.php.net/rfc/password\_hash

2.1k56.8M122](/packages/ircmaxell-password-compat)[symfony/password-hasher

Provides password hashing utilities

813137.2M91](/packages/symfony-password-hasher)[bjeavons/zxcvbn-php

Realistic password strength estimation PHP library based on Zxcvbn JS

86917.5M63](/packages/bjeavons-zxcvbn-php)[passwordlib/passwordlib

A Password Hashing Library

377220.6k6](/packages/passwordlib-passwordlib)[lastguest/murmurhash

MurmurHash3 Hash

12910.2M52](/packages/lastguest-murmurhash)[paragonie/password_lock

Wraps Bcrypt-SHA2 in Authenticated Encryption

19348.7k1](/packages/paragonie-password-lock)

PHPackages © 2026

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