Laravel is an open-source PHP framework, follows the MVC (model–view–controller) pattern. Laravel reduces the time of web development and helps to make web application secure. Some key features make Laravel more powerful for building large and robust web application.
Laravel has the following key features which are most required for the modern web development.
Before you start Laravel installation, make sure your server meets the following requirements.
Before Composer download and install, make sure all the packages are updated and their dependencies are installed. Run the following command to update packages:

1-Open the Windows command prompt and navigate to the

Run the following command to install Laravel in

At first, download the Laravel installer using Composer:
Create a fresh Laravel installation in


Run the development URL on the browser (http://localhost:8000/). If Laravel installed successfully
on Ubuntu server, the following screen will appear.

Laravel has the following key features which are most required for the modern web development.
- Simple, fast routing engine.
- Powerful dependency injection container.
- Multiple back-ends for session and cache storage.
- Query builder and ORM
- Database agnostic schema migrations.
- Robust background job processing.
- Real-time event broadcasting.
- Authentication
- Template engine
Before you start Laravel installation, make sure your server meets the following requirements.
- PHP >= 5.6.4
- OpenSSL PHP Extension
- PDO PHP Extension
- Mbstring PHP Extension
- Tokenizer PHP Extension
- XML PHP Extension
Install Composer on Windows
- Download Composer-Setup.exe file on your system and run the installer. It will install the latest version of Composer.
- Once the Composer is installed, open the command prompt and type
composer
command to check the installation status.
1-Install Composer on Ubuntu
Update packages and dependencies:Before Composer download and install, make sure all the packages are updated and their dependencies are installed. Run the following command to update packages:
sudo apt-get updateThe following dependencies are needed to install.
- curl – for download Composer
- php5-cli – for install and run Composer
- git – used by Composer
sudo apt-get install curl php5-cli git
2-Download and install composer:
Run the following commands to get the latest Composer version. This 4 lines commands will do the 4 things.- Download the installer
- Verify the installer
- Run the installer
- Remove the installer
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('SHA384', 'composer-setup.php') === '55d6ead61b29c7bdee5cccfb50076874187bd9f21f65d8991d46ec5cc90518f447387fb9f76ebae1fbbacf329e583e30') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"
Now move composer.phar
file to the /usr/local/bin/
directory by running the following command:sudo mv composer.phar /usr/local/bin/composerAlternatively, you can use the following single line command to download and install Composer in
/usr/local/bin
directory on Ubuntu.curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer
To test Composer installation, use the following command:
composer

Install Laravel on Windows
Assume that you want to install Laravel on XAMPP server in Windows.1-Open the Windows command prompt and navigate to the C:/xampp/htdocs
directory.
cd \xampp\htdocs\

Run the following command to install Laravel in C:/xampp/htdocs/laravel
directory.
composer create-project laravel/laravel laravelLaravel installation will start, wait for complete.

Install Laravel on Ubuntu
Install Via Laravel InstallerAt first, download the Laravel installer using Composer:
composer global require "laravel/installer"Create a fresh Laravel installation in a specific directory (for example,
laravel
):laravel new /var/www/html/laravelInstall Via Composer Create-Project
Create a fresh Laravel installation in
laravel
directory:sudo composer create-project laravel/laravel /var/www/html/laravel
Test Laravel Installation on Windows
Run the Laravel project URL on the browser (http://localhost/laravel/public/). If Laravel installed successfully on Windows server, the below screen will appear.
Test Laravel Installation on Ubuntu
Go to the Laravel project (laravel) directory:cd /var/www/html/laravelStart Laravel development server:
php artisan serveThe terminal will show the below screen, copy the development server URL.

Run the development URL on the browser (http://localhost:8000/). If Laravel installed successfully
on Ubuntu server, the following screen will appear.

Comments