I am trying to install Mcrypt PHP module but encountering some issues:
-
Version of PHP installed: 7.1.16
-
macOS version: macOS High Sierra 10.13.6
Is the following command that I am running correct?
Install the correct package, for me was 7.1.7 => homebrew/php/php71-mcrypt
brew install homebrew/php/php71-mcrypt
Best Answer
The formula you are trying to install is deprecated. There was an announcement the 19 january 2018:
Some of the PHP extensions are maintained by Kevin Abel in its Github repository but there is no mcrypt extension.
Moreover mcrypt is itself deprecated and is considered as an abandonware for nearly a decade. It is removed from PHP 7.2. Read this stackoverflow question for alternatives: mcrypt is deprecated, what is the alternative?