How to install mcrypt PHP 7.2 extension on OSX
Homebrew removed homebrew-php since 31st March 2018 and you cannot longer install mcrypt extension from it.
To make it works on OSX and PHP72, here is the new way to install it.
pecl install mcrypt-1.0.1