PHPackages                             wp-kit/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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. wp-kit/hashing

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

wp-kit/hashing
==============

A wp-kit component that handles password hashing

2.0.2(6y ago)07.5k1MITPHPPHP &gt;=7.2

Since Sep 1Pushed 6y ago1 watchersCompare

[ Source](https://github.com/wp-kit/hashing)[ Packagist](https://packagist.org/packages/wp-kit/hashing)[ Docs](https://github.com/wp-kit/hashing)[ RSS](/packages/wp-kit-hashing/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (3)Dependencies (1)Versions (4)Used By (1)

wp-kit/hashing
==============

[](#wp-kithashing)

This is a wp-kit component that handles password hashing.

This component was built to run within an [`Illuminate\Container\Container`](https://github.com/illuminate/container/blob/master/Container.php) so is perfect for frameworks such as [`Themosis`](http://framework.themosis.com/), [`Assely`](https://assely.org/) and [`wp-kit/theme`](https://github.com/wp-kit/theme).

`wp-kit/hashing` was built to support [`wp-kit/auth`](https://github.com/wp-kit/auth) when authenticating users and comparing the input password against the stored password in WordPress.

There are many good reasons to use [`Eloquent`](https://laravel.com/docs/5.4/eloquent) but often password hashing on users can get in the way of using `Eloquent` to manage authentication in WordPress, and `wp-kit/hashing` aims to solve this problem.

Installation
------------

[](#installation)

If you're using `Themosis`, install via [`Composer`](https://getcomposer.org/) in the root of your `Themosis` installation, otherwise install in your `Composer` driven theme folder:

```
composer require "wp-kit/hashing"
```

Setup
-----

[](#setup)

### Add Service Provider

[](#add-service-provider)

Just register the service provider in the providers config:

```
//inside theme/resources/config/providers.config.php

return [
    //
    WPKit\Hashing\HashingServiceProvider::class
];
```

### Add Facade

[](#add-facade)

If you are using Themosis or another `Iluminate` driven framework, you may want to add `Facades`, simply add them to your aliases:

```
//inside themosis-theme/resource/config/theme.config.php

'aliases' => [
    //
    'Hasher' => WPKit\Hashing\Facades\Hasher::class
    //
]
```

Usage
-----

[](#usage)

If you are using `wp-kit/auth`, hashing will work out of the box as `illuminate/auth` listens to the hash binding on the container which is register by [`HashingServiceProvider`](https://github.com/wp-kit/hashing/blob/master/src/Hashing/HashingServiceProvider.php). However you can use the [`Hasher`](https://github.com/wp-kit/hashing/blob/master/src/Hashing/Hasher.php) elsewhere in your application if you wish:

```
use WPKit\Hashing\Facades\Hasher;

$hashed = Hasher::make('some_password');

$validated = Hasher::check('some_password', $hashed);
```

Get Involved
------------

[](#get-involved)

To learn more about how to use `wp-kit` check out the docs:

[View the Docs](https://github.com/wp-kit/theme/tree/docs/README.md)

Any help is appreciated. The project is open-source and we encourage you to participate. You can contribute to the project in multiple ways by:

- Reporting a bug issue
- Suggesting features
- Sending a pull request with code fix or feature
- Following the project on [GitHub](https://github.com/wp-kit)
- Sharing the project around your community

For details about contributing to the framework, please check the [contribution guide](https://github.com/wp-kit/theme/tree/docs/Contributing.md).

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

[](#requirements)

Wordpress 4+

PHP 5.6+

License
-------

[](#license)

wp-kit/hashing is open-sourced software licensed under the MIT License.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity60

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

Total

3

Last Release

2295d ago

PHP version history (2 changes)2.0.0PHP &gt;=5.6.4

2.0.2PHP &gt;=7.2

### Community

Maintainers

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

---

Top Contributors

[![terence1990](https://avatars.githubusercontent.com/u/8171301?v=4)](https://github.com/terence1990 "terence1990 (28 commits)")

---

Tags

wordpressauthAuthenticationpasswordhashingthemosiswp-kitassely

### Embed Badge

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

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

###  Alternatives

[tymon/jwt-auth

JSON Web Token Authentication for Laravel and Lumen

11.5k49.1M350](/packages/tymon-jwt-auth)[php-open-source-saver/jwt-auth

JSON Web Token Authentication for Laravel and Lumen

8359.8M53](/packages/php-open-source-saver-jwt-auth)[ellaisys/aws-cognito

AWS Cognito package that allows Auth and other related features using the AWS SDK for PHP

120220.7k1](/packages/ellaisys-aws-cognito)[maicol07/flarum-ext-sso

SSO for Flarum

468.3k](/packages/maicol07-flarum-ext-sso)[itinerisltd/disallow-pwned-passwords

Disallow WordPress and WooCommerce users using pwned passwords.

281.8k](/packages/itinerisltd-disallow-pwned-passwords)

PHPackages © 2026

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