Laravel is the very powerful framework for php web application.
Before starting new project you need Composer to install required dependencies. This helps you to download laravel dependencies.
To install Composer you need php5-curl. To install curl simply run the following command.
$ sudo apt-get install php5 git php5-curl
After successful installation of curl you can simply run the following command to download the composer.
$ curl -sS https://getcomposer.org/installer | php
Now you need to set path environment variable for composer. So that you can simply access composer by simply typing composer
Run the following command to set environment variable for composer
$ export PATH="$PATH:~/.composer/vendor/bin"
Now you can download laravel installer using composer. The below command will download the laravel installer.
composer global require "laravel/installer=~1.1"
That’s all..! All are set.
Now create a basic project by simply typing the following command
laravel new mycrud
now the new project mycrud was created in the directory. Be sure your project directory is in ‘/var/www/html’