Laravel Installation

Installation of Laravel — The PHP Framework

J Riyana
LinkIT

--

Logo from Laravel Repository by Taylor Otwell

In this article, you can get to know how to install Laravel to your system within 5 steps.

Before that, you want to know about two main things we will find while installing Laravel.

1.Composer

A composer is a tool that includes all the dependencies and libraries. It allows a user to create a project with respect to the mentioned framework. All the dependencies are noted in the composer.json file which is placed in the source folder.

2. Artisan

The command-line interface used in Laravel is Artisan. It provides a number of helpful commands for your use while developing your application.

Now let us see the steps of installation.

Installation

Step 1:

Go to the following URL and download the composer to install it on your system.

https://getcomposer.org/

Step 2:

Go to command prompt and check the installation by typing the Composer command as shown in the following screenshot.

Screenshot by Author

Step 3:

By typing the following command in your command prompt you can install the complete framework.

composer create-project laravel/laravel test dev-develop

The output of the command is as shown below-

Screenshot by Author

Step 4:

Now you can start Laravel service by executing the following command.

php artisan serve

Screenshot by Author

Step 5:

Copy the URL underlined in gray in the above screenshot and open it in the browser. If you see the following screen, it implies Laravel has been installed successfully.

Screenshot by Author

Now you can develop your web application as you need.

Thank you for reading.❤

Stay tuned for more about Laravel.🤞

--

--

J Riyana
LinkIT
Writer for

I am an undergraduate in the Faculty of Information Technology University of Moratuwa, Sri Lanka.