Install Laravel Using Composer Environment Setup for Laravel 9 | Full Guide

Environment Setup for Laravel

Steps to follow

1)  Installation of PHP Local Server (i.e xampp).

Search on google - Install xampp.


Download latest version for your system.



2) Installation of composer - package manager.

Search on google - install composer.


Download and install composer and give the path of xampp>php>php.exe if it is not by default.



3) Installation of Laravel Globally.

Open command prompt and install laravel globaly.

Note - Please keep your internet connection connected.

Type this command in command prompt - composer global require laravel/installer 

4) Creating a new project.

After installation create new project with this command - laravel new example-app 

After project has been created type these commands- cd example-app 

Now run the laravel project - php artisan serve 

You will get url in command prompt like this - http://127.0.0.1:8000/

Paste this address on browser.

5) Installation of a code editor (vs code).

Search on google - install vs code.


Download and install for your system. Check the all checkbox and install it.


Now go to in your xampp>htdocs>example-app. After opened example-app folder right click and open with vs code. The project code will open in your vs code.

Comments