How to install laravel 10 using composer on windows

By Ved Prakash N | Nov 12, 2023 | Laravel
Share :

https://www.fundaofwebit.com/post/how-to-install-laravel-10-using-composer-on-windows

In this blog, we will learn about How to Install Laravel 10 using Composer.


Steps to Install Laravel 10 using Composer:


STEP 1: Prerequisites

1. Download & Install PHP 8.1 or Later on your PC : Laravel 10 only runs on PHP 8.1 or greater.

If you already have an older version of PHP, you simply need to download the new version. (Note: take a backup of your databases from your old php)

You can select any php localserver like XAMPP or WAMPP.

2. Download & Install Composer : 

You can download & install Composer from the given link : https://getcomposer.org/ 

After installation of the composer, run the below command on your terminal to see your composer is running.

composer -v


STEP 2: Create new laravel application using composer
Lets open a terminal and the terminal path should be where you want to keep the your project application and then run the below command.

composer create-project laravel/laravel:10.0^ blog-app

OR if you want with the current Laravel Latest Version please follow with below command:

composer create-project laravel/laravel blog-app

After successful installation of Laravel application, move to the correct directory as follows.

cd blog-app

And now serve the laravel application with the following command:

php artisan serve

Once the artisan is served successfully. you can go to the URL : http://localhost:8000/ on any browser.

The Output:



I hope it helps you. Thanks for reading.

https://www.fundaofwebit.com/post/how-to-install-laravel-10-using-composer-on-windows

Share this blog on social platforms