In this article, we will explain to you how to install laravel in xampp or wamp. here we give you a simple example of how to install laravel in xampp.

If you want to install laravel framework then first require to PHP 7+ version for the installation latest laravel and require the composer.

Step1: Download the composer and install the composer. follow below URL to you can download composer https://getcomposer.org/

Step2: After the installation composer, open the cmd and check the below command to the composer is installed or no.

composer

See below a screenshot example of how to check whether the composer is installed or not.

install laravel

Step3: Go to in your www or htdocs folder directory and run the following below laravel installation command.

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

Above command run after laravel latest version was successfully installed.

See the below screenshot example of laravel installation.

install laravel

Step4: Move to in your project directory after the installation laravel. see below screenshot example of move directory.

install laravel

Step5: But, if you want to run the laravel then follow the below command.

php artisan serve

See below a screenshot example of how to run laravel.

install laravel

Step6: Copy Url such as “http://127.0.0.1:8080” above screenshot and open the browser and paste the copied URL then laravel has been installed successfully. See the following screenshot example of successfully running laravel.

install laravel