Once installation is completed, click Finish.
3. Verify Composer Installation
Summary
curl -sS https://getcomposer.org/installer | php sudo mv composer.phar /usr/local/bin/composer
5. Verify PHP and Composer Installations
Replace app-name above with whatever you wish.
As you dive deeper into Laravel, be sure to explore the wealth of resources available to help you learn and get the most out of this powerful tool. The Laravel community is known for its strong support and comprehensive documentation, so don’t hesitate to reach out if you need assistance.
When it comes to deploying your Laravel applications, consider using Kinsta Application Hosting. Kinsta provides a hosting solution that is optimized for Laravel, which is both strong and scalable. This ensures that your applications run smoothly and safely. You can manage your Laravel projects effectively with the help of Kinsta’s advanced features and world-class support.
Visit the Composer download page and download the Composer-Setup.exe file.

Laravel offers built-in support for task scheduling, making it easy to automate tasks like sending emails or cleaning up old data. Additionally, Laravel’s authentication system simplifies the process of adding secure user authentication to your web applications.
Now, install Laravel by running the following command in the Terminal:
Visit the XAMPP download page and download the appropriate installer for your Windows version.
Geocodio is a geocoding service that converts addresses to latitude and longitude coordinates and vice versa. Laravel powers Geocodio’s web application, allowing it to provide its customers a reliable and efficient geocoding service.
October CMS
This will automatically download all the relevant Laravel files to create a new project.
5. Verify Laravel Installation
To install PHP, use the following command in the Terminal:
To start the local development server, execute the following command within the project directory:
This command will launch a local development server on port 8000. You can access your Laravel application by opening your web browser and navigating to:
composer create-project --prefer-dist laravel/laravel app-name
composer create-project laravel/laravel app-name
http://127.0.0.1:8000
After installation, secure your MariaDB installation by running:
But first, let’s talk about what Laravel is, why it’s useful, and who can make the most of it.
What Is Laravel?

First, update your package index and install Apache by running the following commands in the Terminal:
Some of the key features and functionality offered by Laravel include:
Eloquent ORM For Database Interactions
cd app-name
7. Run the Laravel Server
Who Uses Laravel?
The New York Times uses Laravel for its internal web applications, helping the company to build and maintain complex web applications quickly and effectively.
St Jude Children’s Research Hospital
sudo systemctl enable apache2 sudo systemctl start apache2
2. Install PHP
Then go to the newly created project directory:
Make sure to select the correct PHP executable during the installation process (usually located in the XAMPP installation folder under xampp/php/php.exe).
Laravel provides intuitive syntax, built-in tools, and extensive documentation, enabling developers to create web applications quickly and efficiently, significantly reducing development time.
Readable and Maintainable Code
Laravel’s Object-Relational Mapping (ORM) allows for smooth and intuitive interactions with your database, making it easy to perform CRUD (Create, Read, Update, Delete) operations and manage relationships between tables.
Blade Templating Engine
To create a new Laravel project, use the following command in the Terminal:
With the server started you should then be able to access your app project via your web browser. To do this, open your browser and go to the following: https://localhost:8000
Homebrew is a package manager for macOS that simplifies the installation of software. To install Homebrew, open the Terminal and run the following command:
To verify that Laravel was installed correctly, open the Terminal and run the following command:
This article will guide you through the process of installing Laravel on Windows, macOS, and Linux operating systems.
php --version composer --version
php -v mysql --version composer -V
6. Install Laravel Using Composer
laravel --version
So you know you want to use Laravel, but what do you need to know before getting started with it? That’s what we’ll discuss next.
Laravel Prerequisites
sudo apt install mariadb-server
To verify that Laravel was installed correctly, open the Command Prompt and run the following command:
To access your Laravel application, run this command to launch a local development server on port 8000. Then, open your web browser and navigate to:
curl -sS https://getcomposer.org/installer | php
sudo mv composer.phar
sudo chmod +x /usr/local/bin/composer
5. Verify PHP, MariaDB, and Composer Installations
Follow the on-screen instructions to set up a root password and other security settings.
4. Install Composer
You can use Composer, which is now installed, to install Laravel globally on your system. To do so, open the Command Prompt and run the given command:
To launch the development server for the project, go to the project directory and run the specified command.
After a successful installation, you will be able to see the Laravel version.
6. Start The Server
Ensure your system meets the following requirements:
- Supported operating systems: Windows, macOS, Linux
- Hardware requirements: Minimal (dependent on PHP and Composer)
- PHP installation: Required before installing Laravel
- Composer installation: Required for Laravel installation
Versions
Wait for the installation process to complete.
7. Verify Laravel Installation
Next, install Node.js and npm (Node.js package manager) using Homebrew. In the Terminal, type the following command:
This command installs both Node.js and npm on your system.
3. Install PHP
But if you’re new to the framework or don’t know how to use it yet, don’t worry! This guide will help you get up and running with Laravel in no time.
Laravel is a powerful and elegant PHP web application framework that streamlines web application development through an MVC (Model-View-Controller) architecture. Created by Taylor Otwell, Laravel has gained immense popularity due to its simplicity and ease of use, making it a top choice for web developers worldwide.
Key Features and Functionality
Run the installer and follow the on-screen instructions. During the installation process, you can choose which components to install. Make sure to select PHP and MySQL.
With this, you can start developing web applications using Laravel on your Windows machine.
How To Install Laravel on macOS
All of this is great to know but exactly who can make the best use of Laravel? Let’s explore that next.
Composer is a dependency management tool for PHP that is required to install Laravel. To install Composer on Windows, follow these steps:
Click Next to move through the on-screen instructions then click Install.
In this article, we’ve covered the process of installing Laravel on Windows, macOS, and Linux. Now that you have successfully installed Laravel on your chosen operating system, you’re ready to start building powerful and elegant web applications using this popular PHP framework.
Follow along with the instructions for your specific operating system below.
How To Install Laravel on Windows
If the installations were successful, you should see the PHP and Composer versions displayed.
6. Install Laravel Using Composer
brew install php
sudo apt update sudo apt install apache2
Remember to replace app-name with the actual name you used for your project.
9. Run The Laravel Server
If everything has been set up correctly, you will be able to view the default Laravel welcome page which confirms that your application is up and running. Now Laravel is installed on your Linux system!
Follow the on-screen instructions to complete the installation.
2. Install Node.js and npm
composer --version
Now, here are some examples of companies that use Laravel in their projects:
Bankrate
php artisan serve
7. Run The Project In Your Browser
As you can see, Laravel is a powerful framework used by companies of all sizes, from startups to large enterprises. But you still might not be sure about the benefits this framework offers to developers. Let’s explore that now.
Advantages of Using Laravel
You will know that the installation is successful if you see the version of Laravel displayed.
8. Create a New Project
laravel --version
October CMS is a free, open-source content management system (CMS) built on top of Laravel. By leveraging the power and flexibility of the Laravel framework, October CMS provides a user-friendly and customizable solution for managing website content.
php artisan serve
sudo apt install php libapache2-mod-php php-mbstring php-xmlrpc php-soap php-gd php-xml php-cli php-zip php-bcmath php-tokenizer php-json php-pear
3. Install MariaDB

When choosing a version of Laravel, consider the following:
- Stable vs. latest versions: Choose based on project needs. Stable versions offer reliability, while the latest versions may include new features and improvements.
- Importance of checking compatibility: Ensure smooth integration with other libraries and PHP versions by verifying that your chosen version of Laravel is compatible with your project’s dependencies.
How To Install Laravel
cd app-name
Laravel offers a number of advantages that make it a popular choice among web developers:
Rapid Development Process
Laravel’s Artisan command-line tool offers a range of helpful commands for common tasks, such as generating controllers, migrations, and more. This speeds up the development process and helps you maintain a clean, organized codebase.
Built-in Support For Tasks Scheduling and Authentication
Run the Composer-Setup.exe file and follow the on-screen instructions.
Composer is a dependency management tool for PHP that is required to install Laravel. To install Composer on macOS, run the following commands in the Terminal:
http://127.0.0.1:8000
composer global require laravel/installer
Get all your applications, databases, and WordPress sites online and under one roof. Our feature-packed, high-performance cloud platform includes:
- Easy setup and management in the MyKinsta dashboard
- 24/7 expert support
- The best Google Cloud Platform hardware and network, powered by Kubernetes for maximum scalability
- An enterprise-level Cloudflare integration for speed and security
- Global audience reach with up to 35 data centers and 275 PoPs worldwide
Now that you have Composer installed, you can use it to install Laravel. Open the Terminal and run the following command to install Laravel globally on your system:
To install Laravel on Linux, follow these detailed steps:
1. Install Apache Web Server

Wait for the installation to complete.
4. Install Composer

Blade is Laravel’s simple yet powerful templating engine, allowing you to create dynamic and reusable HTML templates with ease. With its concise syntax, Blade makes it easy to separate your application’s logic from its presentation.
Artisan Command-Line Tool
If the installation was successful, you should see the Composer version displayed.
4. Install Laravel Using Composer
sudo mysql_secure_installation
And in the meantime, best of luck in your Laravel journey!
Next, navigate to the newly created project directory:
You should now see the default Laravel welcome page, indicating that your application is running successfully. You can start building your Laravel application and see the changes live on the local development server.
How To Install Laravel on Linux
To verify that PHP and Composer were installed correctly, open the Terminal and run the following commands:
With Homebrew installed, you can now use it to install PHP. Run the following command in the Terminal:
MariaDB is an open-source relational database management system. Install it by running the following command:
To verify that Composer was installed correctly, open the Command Prompt and run the following command:
composer create-project --prefer-dist laravel/laravel app-name