Cookie

This site uses tracking cookies used for marketing and statistics. Privacy Policy

Contact

How To Install Laravel?

Publish Date: July 7, 2023 Last Updated: October 19, 2026

Summarize with AI:

  • ChatGPT
  • Google AI
  • Perplexity
  • Grok
  • Claude

Introduction

Installing Laravel is simpler than it looks: builders just need PHP and Composer on their machine, then one command creates a ready-to-run project. The steps are to install PHP, install Composer (PHP's dependency manager), create a new project with composer create-project laravel/laravel example-app, and start the server with php artisan serve. 

In a few minutes, you go from nothing to a running Laravel application you can open in the browser. Getting set up and building from there is part of Acquaint Softtech's Laravel development services.

Step 1: Install PHP

Laravel runs on PHP, so install it first (the current Laravel needs PHP 8.3 or higher). The commands differ by operating system, and Laravel's official installation documentation lists the full requirements:

Operating system

Install PHP

Verify

Windows

download from windows.php.net, add to PATH

php -v

macOS

brew install php (via Homebrew)

php -v

Linux (Ubuntu/Debian)

sudo apt install php

php -v

Linux (CentOS/RHEL)

sudo yum install php

php -v

Step 2: Install Composer

Next, install Composer, the dependency manager that pulls in Laravel and its packages. Download it from getcomposer.org and install it like any other program, then confirm it works. 

Composer is what makes the rest of the process a single command, and it is the foundation of almost all Laravel web application development at Acquaint Softtech.

Step 3: Create And Run The Project

Now create the project. Open your terminal, navigate to the folder where you want it, and run composer create-project laravel/laravel example-app, which downloads Laravel and all its dependencies (this can take a couple of minutes depending on your connection). 

You can also install the Laravel installer once with composer global require laravel/installer and then use the shorter laravel new example-app for every new project, which can even scaffold a starter kit at the same time. 

Finally, run cd example-app and php artisan serve to start the development server, then open http://localhost:8000 to see your new app. Building on that foundation is part of custom Laravel development.

Ready To Build After Installing Laravel?

Acquaint Softtech sets up production-ready Laravel environments, so your team can start building on day one. Book a free 30-minute consultation, no sales pitch, just honest advice.

After Installation

A few quick steps get you ready to build. Open the .env file in your project root and set your database connection (driver, host, port, name, username, and password). Run php artisan migrate to create the tables from Laravel's migrations, and php artisan key: generate to set the application key that secures encrypted data (composer create-project usually does this for you). With that done, your app is ready, a fast start that suits Laravel startups at Acquaint Softtech.

The Easy Modern Way

There is an even easier route today, which the original guide predates. Laravel Herd is a free native app for macOS and Windows that bundles PHP, a web server, and the tools you need in one install, so builders can skip the manual PHP setup from Step 1 entirely and get a new project running in moments. 

Laravel Sail offers a ready-made Docker environment that includes PHP, a database, and more, which is handy when you want everyone on the team working in an identical setup. Either way, you spend less time configuring and more time building, one of the reasons teams choose Laravel, as covered in why use Laravel for web development.

Common Questions On Installing Laravel

How do I install Laravel on Windows? Install PHP and Composer, then run composer create-project (or use Laravel Herd to skip the manual setup). Do I need Composer? Yes, it installs Laravel and its dependencies. 

What is laravel new? The Laravel installer's command for creating new projects quickly. How do I run Laravel after installing? With php artisan serve. What PHP version do I need? PHP 8.3 or higher for the current Laravel. Getting the right local setup is the kind of call Laravel consulting services at Acquaint Softtech can help with.

Explore Laravel's Features

Once installed, the fun part is exploring what Laravel gives you: Eloquent ORM for the database, the Blade templating engine for views, and the Artisan command-line tool for automating tasks, all included and designed to work together. That completeness is a big part of what makes Laravel the best choice for PHP web development.

Getting Set Up The Right Way With A Team

Installing Laravel comes down to PHP, Composer, and one create-project command, then a few post-install steps, and modern tools like Herd make it even quicker. To set up and build your project the right way, you can hire Laravel developers from Acquaint Softtech, an Official Laravel Partner, who get your environment production-ready from day one.

Wrapping Up

And that is how you install Laravel on your computer. By following these steps, installing PHP and Composer, creating the project, starting the server, and completing a few post-install tasks, builders get a fully functional Laravel installation ready to serve as the foundation for their next web application.

From here, explore Laravel's features and keep building, and you will quickly see why it is such a popular choice for modern web development.

India (Head Office)

203/204, Shapath-II, Near Silver Leaf Hotel, Opp. Rajpath Club, SG Highway, Ahmedabad-380054, Gujarat

USA

7838 Camino Cielo St, Highland, CA 92346

UK

The Powerhouse, 21 Woodthorpe Road, Ashford, England, TW15 2RP

New Zealand

42 Exler Place, Avondale, Auckland 0600, New Zealand

Canada

141 Skyview Bay NE , Calgary, Alberta, T3N 2K6