I have installed Composer and followed the Quick start guide in the Laravel 4 documentation.
I get the following error when I run composer
You might have Mcrypt installed already on your computer, if you are using MAMP or any other application. So, you don't need to install Mcrypt again. Add the following code to a php file and place it in your htdocs directory. See the info about the PHP you are running. You can see whether Mcrypt is already installed or not.
If it shows Mcript, then do the following:
/Applications/MAMP/bin/php/
.cd ~
..bash_profile
file.where php5.5.10
is the directory of the PHP version you are using.
export PATH=/Applications/MAMP/bin/php/php5.5.10/bin:$PATH
Now restart your computer. And you can use php artisan
command of Laravel.
Source of information: Laravel requires the Mcrypt PHP extension