'mcrypt is not installed with the php 5.6

I have installed the php version 5.6 and in order to run my laravel application it is asking to install and enable the mcrypt extension. These are the steps I followed.

brew install php56 php56-mcrypt
nano /etc/apache2/httpd.conf

Then editing the httpd.conf file I added the following.

LoadModule php5_module /usr/local/opt/php56/libexec/apache2/libphp5.so

But when I run the following command in order to check the "mcrypt" availability still it shows that it is not installed.

php -i | grep "mcrypt"


Solution 1:[1]

I made it working on mac or windows using the Xampp that uses php 5.6 and my issue with the mcrypt is gone.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 E_net4 - Krabbe mit Hüten