PHPackages                             dan142/laravel-hashing-mysql - 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. [Database &amp; ORM](/categories/database)
4. /
5. dan142/laravel-hashing-mysql

ActiveLibrary[Database &amp; ORM](/categories/database)

dan142/laravel-hashing-mysql
============================

v1.0.0(2y ago)07MITPHPPHP ^7.3|^8.0

Since Jan 16Pushed 2y ago1 watchersCompare

[ Source](https://github.com/dan142/laravel-hashing-mysql)[ Packagist](https://packagist.org/packages/dan142/laravel-hashing-mysql)[ RSS](/packages/dan142-laravel-hashing-mysql/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

laravel-hashing-mysql
=====================

[](#laravel-hashing-mysql)

Laravel MySQL Hasher

Adds support for the password hashing algorithms used by MySQL's now-deprecated PASSWORD() and OLD\_PASSWORD() functions to the Laravel Hasher. This is intended to assist in migration from these to more modern and secure algorithms.

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

[](#installation)

Add the package with composer.

```
composer require dan142/laravel-hashing-mysql

```

### Using as the default driver

[](#using-as-the-default-driver)

Edit config/hashing.php and change the driver to either `mysqlpassword` or `mysqloldpassword`, depending on which you need.

```
'driver' => 'mysqlpassword',

```

### Using independently of the default driver

[](#using-independently-of-the-default-driver)

You can specify the driver you'd like to use when using the Hash facade like so:

```
Hash::driver('mysqlpassword')->make("hash");

```

```
Hash::driver('mysqloldpassword')->make("hash");

```

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

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

Unknown

Total

1

Last Release

892d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/18e84a2077b9fa5181a2dfc87880b046e3b6d233eaa7e6d35df468d624eb6bbe?d=identicon)[dan142](/maintainers/dan142)

---

Top Contributors

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

---

Tags

laravelpasswordhashingmysqlhasherold\_password

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/dan142-laravel-hashing-mysql/health.svg)

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

###  Alternatives

[kirschbaum-development/eloquent-power-joins

The Laravel magic applied to joins.

1.6k29.9M42](/packages/kirschbaum-development-eloquent-power-joins)[illuminate/database

The Illuminate Database package.

2.8k54.1M11.1k](/packages/illuminate-database)[yajra/laravel-oci8

Oracle DB driver for Laravel via OCI8

8723.1M23](/packages/yajra-laravel-oci8)[glushkovds/phpclickhouse-laravel

Adapter of the most popular library https://github.com/smi2/phpClickHouse to Laravel

2051.4M2](/packages/glushkovds-phpclickhouse-laravel)[lemaur/eloquent-publishing

207.8k1](/packages/lemaur-eloquent-publishing)

PHPackages © 2026

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