Home » Install Methods » How to install laravel

Introduction: Laravel is a great PHP framework. It has a lot of features related to validations, working with array and some other security features. You can learn about laravel from laracasts here you can also find some
other good things about laravel.
Summery: In this post, I am going to show you how we can download laravel with the help of Composer.
If you want to know about the composer you can see my post How To Install Composer.

Let’s start,
There are two methods are available to install laravel. As I mentioned above I am going user to the composer to install the Laravel. First of all, we need the composer to install if you do not have please go to the link that I have given in the introduction. Once you have composer installed you need to run this command into your terminal (for Linux) OR in cmd (for window).

composer create-project --prefer-dist laravel/laravel laravelTest

This command will be download latest version of laravel if you want any specific version you just need add bit text in
it. For example, if I need 5.4 version then I need to write the command like below.

composer create-project --prefer-dist laravel/laravel laravelTest "5.4.*"

install laravel                                                                                                    figure(1)

Apart from this if you are going to install any version first you need to check PHP version that needed for laravel
version. You can check on the official website of laravel.

Let me explain you about laravelTest that I am using in command. This is only the folder in which I am going
to install Laravel. You should give a name according to your choice.

Once the installation process is completed you need to open your browser and write localhost/laravelTest/public into browser address bar. If you able to see below on your browser tab that means you have successfully installed laravel. install laravel                                                                                                figure(2).

That’s all!?.


How to install Yii2
How to install Lumen

Back to top