The problem
When you install php71-mcrypt using:
brew install php71-mcryptBrew will install the php71 mcryprypt extension, but when you then use php you’ll note that mcrypt doesn’t work. If you restart php and you get something like this:
PHP Warning: PHP Startup: mcrypt: Unable to initialize module
Module compiled with build ID=API20160303,NTS
PHP compiled with build ID=API20160303,NTS,debugThe fix
Is thankfully, very very simple. Run:
brew reinstall php71-mcrypt --build-from-sourceBoom! Now it works.