How to Create a New Laravel 9 App: A Step-by-Step Guide with XAMPP and PHP 8.0
In this tutorial, we'll walk through the process of setting up a new Laravel 9 application. We'll start by installing XAMPP with PHP 8.0, and then move on to creating and running a Laravel 9 project.
Prerequisites
Basic knowledge of PHP and web development.
A computer running Windows, macOS, or Linux.
Step 1: Installing XAMPP
XAMPP is a free and open-source cross-platform web server solution that includes Apache, MariaDB, PHP, and Perl.
Install XAMPP: Run the installer and follow the instructions. Make sure to select PHP and MySQL.

Step 2: Installing Composer
Composer is a dependency manager for PHP, and Laravel requires it for managing its dependencies.
Install Composer: Run the installer. Ensure that it adds the Composer’s bin directory to your system path.
Open Command Prompt or Terminal.
Install Laravel Globally: Run the following command:
composer global require laravel/installer2 composer global require laravel/installer
3. Ensure the Composer's global bin directory is in your system's PATH so the laravel executable can be located.
Step 4: Creating a New Laravel Project
Create a new Laravel project using the Laravel installer.
Navigate to the directory where you want your project: E.g., cd C:\xampp\htdocs
Create a new Laravel project: Run the command:
Replace my_laravel_project with your desired project name.
Step 5: Running the Laravel Project
Let's get your Laravel application up and running.
Navigate to your project directory: E.g., cd my_laravel_project
Run the Laravel project: Use the command:
3. Access Your Project: Open your web browser and visit http://localhost:8000. You should see the Laravel welcome page.
Conclusion
Congratulations! You've successfully set up a new Laravel 9 application using XAMPP and PHP 8.0. This setup provides you with a robust environment for developing modern web applications using Laravel.
Related post

Husam Shilbaya
Creator of MenaCodingThe backbone of our platform, Husam is a Laravel maestro with a fervor for crafting web solutions that speak. His codes are not just lines but the language that bridges ideas with reality.
Ready to get the help you need?
Don't hesitate! Reach out to us now by filling out the form below, or get in touch via email at hello@menacoding.com. We're here to assist you.