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"