PHPackages                             koenhoeijmakers/laravel-argon2 - 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. koenhoeijmakers/laravel-argon2

ActiveLibrary[Security](/categories/security)

koenhoeijmakers/laravel-argon2
==============================

Argon2 implementation

1.1.2(8y ago)111.4k2MITPHPPHP ^7.2CI failing

Since Jul 22Pushed 7y ago2 watchersCompare

[ Source](https://github.com/koenhoeijmakers/laravel-argon2)[ Packagist](https://packagist.org/packages/koenhoeijmakers/laravel-argon2)[ RSS](/packages/koenhoeijmakers-laravel-argon2/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (4)Dependencies (2)Versions (5)Used By (0)

> Pull request [\#21885](https://github.com/laravel/framework/pull/21885) on the framework's repository has made this package obsolete as Argon2 hashing will be added in Laravel's \[5.6\] release, therefore this package will only support from version \[5.0\] to \[5.5\].

Laravel Argon2
==============

[](#laravel-argon2)

[![Packagist](https://camo.githubusercontent.com/5d06722bb74e7102554f89962886998c6d1ca711c93c937607594da4c62e597a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6b6f656e686f65696a6d616b6572732f6c61726176656c2d6172676f6e322e7376673f636f6c6f72423d627269676874677265656e)](https://packagist.org/packages/koenhoeijmakers/laravel-argon2)[![Build Status](https://camo.githubusercontent.com/93780cddbd5a3fb311dee809ab76950c1eeb6f1dd3de5309f94b655bb49801d9/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6b6f656e686f65696a6d616b6572732f6c61726176656c2d6172676f6e322f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/koenhoeijmakers/laravel-argon2/build-status/master)[![Code Coverage](https://camo.githubusercontent.com/84462ace9115971646e84edf7c07e0ccaaa10f96308096566b33719d89953989/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6b6f656e686f65696a6d616b6572732f6c61726176656c2d6172676f6e322f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/koenhoeijmakers/laravel-argon2/?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/506a2c91b6b489e1b80381b8b9ea504ccf98bf1d392f4f15db65731de8656b35/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6b6f656e686f65696a6d616b6572732f6c61726176656c2d6172676f6e322f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/koenhoeijmakers/laravel-argon2/?branch=master)[![license](https://camo.githubusercontent.com/74d40bcb031d1ea22f6d4b8f3f4c6ec7e1163e12441d2885d20af0c74c81630a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6b6f656e686f65696a6d616b6572732f6c61726176656c2d6172676f6e322e7376673f636f6c6f72423d627269676874677265656e)](https://github.com/koenhoeijmakers/laravel-argon2)[![Packagist](https://camo.githubusercontent.com/69032db9d45511eaef8110d98bf752a3733cf84a6df63c7da8d9c1345d52b03c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6b6f656e686f65696a6d616b6572732f6c61726176656c2d6172676f6e322e7376673f636f6c6f72423d627269676874677265656e)](https://packagist.org/packages/koenhoeijmakers/laravel-argon2)

A drop-in Argon2 implementation for Laravel. (which will be usable from `PHP 7.2` if compiled with the `--with-password-argon2` option)

As the [RFC](https://wiki.php.net/rfc/argon2_password_hash) states, the Argon2d variant will not be implemented into php, and therefore we can call our package Argon2 as an alias to Argon2i.

Disclaimer
----------

[](#disclaimer)

Please be careful while changing the HashServiceProviders, if your application is already up and running and in some way relies on bcrypt, then it is probably a bad idea, as this replaces the standard bcrypt functionality from your Laravel installation. (given that it is replaced by Argon2)

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

[](#installation)

Require the package.

```
composer require koenhoeijmakers/laravel-argon2
```

Search inside the `config/app.php` for the `Illuminate\Hashing\HashServiceProvider::class` and replace it with the `KoenHoeijmakers\LaravelArgon2\HashServiceProvider::class`.

```
'providers' => [
    //...

    //Illuminate\Hashing\HashServiceProvider::class,
    KoenHoeijmakers\LaravelArgon2\HashServiceProvider::class,

    //...
],
```

Usage
-----

[](#usage)

If you have replaced your HashServiceProvider with the provider delivered by this package, you may now use the laravel hash functionality the same way as you used to.

FAQ
---

[](#faq)

#### Q: Can i use this package when there are bcrypt hashes in my database?

[](#q-can-i-use-this-package-when-there-are-bcrypt-hashes-in-my-database)

A: That is not a problem as these can still be verified.

### Credits

[](#credits)

- [Argon2](https://github.com/P-H-C/phc-winner-argon2)
- [PHC](https://password-hashing.net/)
- [@koenvdheuvel](https://github.com/koenvdheuvel)

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 95.5% 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 ~84 days

Total

4

Last Release

3010d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2232776?v=4)[Koen Hoeijmakers](/maintainers/koenhoeijmakers)[@koenhoeijmakers](https://github.com/koenhoeijmakers)

---

Top Contributors

[![koenhoeijmakers](https://avatars.githubusercontent.com/u/2232776?v=4)](https://github.com/koenhoeijmakers "koenhoeijmakers (42 commits)")[![CheatCodes](https://avatars.githubusercontent.com/u/4729881?v=4)](https://github.com/CheatCodes "CheatCodes (1 commits)")[![Dylan-DPC](https://avatars.githubusercontent.com/u/99973273?v=4)](https://github.com/Dylan-DPC "Dylan-DPC (1 commits)")

---

Tags

argonargon-2argon2argon2-laravelargon2ibcryptlaravellaravel-argon2laravel5laravel5-package

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/koenhoeijmakers-laravel-argon2/health.svg)

```
[![Health](https://phpackages.com/badges/koenhoeijmakers-laravel-argon2/health.svg)](https://phpackages.com/packages/koenhoeijmakers-laravel-argon2)
```

###  Alternatives

[mews/captcha

Laravel 5/6/7/8/9/10/11/12 Captcha Package

2.6k5.7M88](/packages/mews-captcha)[aishan/lumen-captcha

captcha for lumen

108.5k](/packages/aishan-lumen-captcha)

PHPackages © 2026

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