Amazing Tips : How to setup Laravel 4 on MAC

Step 1 Basic System Requirements

  • PHP 5.3.7 or higher version.
  • MCrypt PHP Extension
  • Composer Dependency Manager for PHP
  • Mcrypt

Step 2 Download Composer

Download composer from https://getcomposer.org/download/

download-composer

Step 3 Open Terminal

Open Terminal and paste follwoing line then press enter. “curl -sS https://getcomposer.org/installer | php”

Step 4 Downaload Mcrypt Installer for MAC

After installing composer, download the Mcrypt installer for MAC.

Go to http://topicdesk.com/downloads/mcrypt/mcrypt-download to download Mcrypt.

  • mcrypt-installer
  • software-license-agreement
  • agree
  • macintosh-hd
  • installation-was-successful

Step 5 Open Terminal and Write Following Command

After successful installation of Mcrypt, open terminal and write following command

“composer create-project Laravel/Laravel=4.0 your-project-name –prefer-dist”

  • open-terminal
  • the-app-guruz-imac

Step 6 Start Laravel Development Server

After setup is done successfully, start Laravel development server.

Change your directory to your application in terminal
“cd your project-directory” then
“php artisan serve”

laravel-php

Now go to your browser and check your Laravel 4 at its default link:
http://localhost:8000

localhost

I hope you find this tutorial helpful. If you are facing any issues or have any questions regarding Laravel Installtion in  MAC, please feel free to post a reply over here, I would be glad to help you.

Leave a Reply