Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

christopher's avatar

Homebrew PHP 7.2 ARGON2i

How can i install ARGON2i with homebrew? It seems that it's not shipped with PHP 7.2 by default.

I tried it with brew reinstall php72 --with-password-argon2 and brew reinstall php72 --with-argon2. I am getting the Error: invalid option: and i can't find any informations about how to comppile PHP 7.2 with argon2 with Homebrew? ... :(

0 likes
3 replies
christopher's avatar

@ETTORE - I already did this and installed it. But it seems that PHP 7.2 is not compiled with Argon2.

brew install argon2

Warning: argon2 20171227 is already installed and up-to-date

If i am trying to use Argon2 i am getting the Error:

Notice: Use of undefined constant PASSWORD_ARGON2I - assumed 'PASSWORD_ARGON2I`

Please or to participate in this conversation.