How to install laravel?

Laravel uses composer for managing dependencies. Composer is the PHP package manager similar to NPM which is the NodeJs package manager. If you need more info you can visit composer official website.

Step 1 - Visit the link and download the composer and install it on your computer.
Step 2 - Open Command Prompt and type composer to check if the composer running properly. You should get something like the screenshot below.

Step 3 - In your terminal go to the directory where you want to install laravel or open your terminal in the directory. Now use the following command to install laravel.

composer create-project laravel/laravel your-app-name

After successfully installing you will get a screen like the below.

Step 4 - Once the laravel is installed you can start Laravel’s local development server using Laravel’s Artisan CLI serve command to view your project in the browser.

cd your-app-name
php artisan serve

Now you are done with the installation, you can start customizing your application.