

In case it doesn’t output the correct path, try closing the terminal window (exit fully) and open again, it should apply the changes (Restart in short).Īlright, we are now all setup to install Laravel with MAMP.If everything was successful, It should output the new path to MAMP PHP install In Terminal, type in which php again and look for the updated string.In Terminal, run source ~/.bash_profile.

(You can check the latest PHP version available in your MAMP directory (/Applications/MAMP/bin/php)

5.7 requires PHP >=7.1.3, Although the latest MAMP will have the latest PHP, it might be the case that the PHP installed local to your MAC machine is old.Ĭheck by running the following command on terminal. Test it out by command composer -v on terminal. That’s it, you now have composer on your MAC. Move the composer to /usr/local/bin/composer mv composer.phar /usr/local/bin/composer If not follow below steps.ĭownload composer installer by this command in terminal curl -sS | php Open your terminal and type out command composer -v, If this gives your the composer version that means you have composer already installed on your machine. Laravel makes use of composer for dependency management, So we need to make sure we have that installed in our system. If the MAMP is installed correctly and the server started without any errors, you should see the following page on accessing localhost in your browser. You should see a MAMP directory created with following contents.Ĭlick on MAMP to start the MAMP Control Panel (Which looks like below image)Ĭlick on Start Servers to Start the MAMP Server.
