Install Laravel 7 with Composer on macOS, Ubuntu and Windows

Last updated on by Digamber
This step by step tutorial explains how to install the latest Laravel 7 version and Composer package manager comfortably on your development system.

You can check out our detailed tutorial on how to create Laravel CRUD Web Application from scratch.

What is Laravel?

Laravel is a free open source PHP framework created by Taylor Otwell. It is based on the MVC design pattern. Laravel offers elegant and robust syntax that allows building a robust software application that can be developed swiftly.

What new features do Laravel 7 offers:

  • HTTP Client
  • Laravel Airlock
  • Custom Eloquent Casts
  • Blade Component Tags & Improvements
  • Route Caching Speed Improvements, etc.

Before we go ahead, i would like to bring in your attention that you must have PHP 7.2+ installed on your machine along with Composer.

Install Composer using Homebrew

Let us use Homebrew to quickly install Composer, open a command-line tool and execute the following command:

If you don’t have Homebrew installed, then follow this link.

brew install composer

Run the following command to check the installed Composer version.

composer -v

You will see the similar output:

/ ____/___  ____ ___  ____  ____  ________  _____
 / /   / __ \/ __ `__ \/ __ \/ __ \/ ___/ _ \/ ___/
/ /___/ /_/ / / / / / / /_/ / /_/ (__  )  __/ /
\____/\____/_/ /_/ /_/ .___/\____/____/\___/_/

Composer version 1.10.6 2020-05-06 10:28:10

Install Laravel 7 Project

You need to execute the given below command to install Laravel 7 project on your development system.

composer create-project --prefer-dist laravel/laravel new-laravel-project

Above command start displaying the Laravel project’s installation progress on your command-line tool’s window.

Once the installation proecess is completed then run the following command to get into the Laravel project folder.

composer cd new-laravel-project

Run Laravel Application

In this step, we will use the PHP artisan command to start the Laravel application on the local development server.

php artisan serve

You project has been started and it will be notified on your command-line tool’s window.

Laravel development server started:

Your project by default starts on port 8000 however you can change it by executing followign command.

php artisan serve --port=8888

Laravel development server started:

Install Laravel 7


In this tutorial, we have successfully learned how to install the latest version of laravel 7 using the Composer package manager.