Requirements:
You need PHP >= 5.6.4 and Composer installed on your machine. You can check version of both by using command:
For PHP:
php -v
Output like this:
PHP 7.0.9 (cli) (built: Aug 26 2016 06:17:04) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
For Composer
You can run command on your terminal/CMD:
composer --version
Output like this:
composer version 1.2.1 2016-09-12 11:27:19
Laravel utilizes Composer to manage its dependencies. So, before using Laravel, make sure you have Composer installed on your machine.
First, download the Laravel installer using Composer:
composer global require "laravel/installer"
Make sure to place the $HOME/.composer/vendor/bin directory (or the equivalent directory for your OS) in your $PATH so the laravel executable can be located by your system.
Once installed, the laravel new command will create a fresh Laravel installation in the directory you specify. For instance, laravel new blog will create a directory named blog containing a fresh Laravel installation with all of Laravel's dependencies already installed:
laravel new blog
Alternatively, you may also install Laravel by issuing the Composer create-project command in your terminal:
composer create-project --prefer-dist laravel/laravel blog
After you are complete with the Laravel installation, you will need to set permissions for the storage and Bootstrap folders.
Note: Setting
permissionsis one of the most important processes to complete while installing Laravel.
Local Development Server
If you have PHP installed locally and you would like to use PHP's built-in development server to serve your application, you may use the serve Artisan command. This command will start a development server at http://localhost:8000:
php artisan serve
Open your browser request url http://localhost:8000