Laravel Tutorials

Install Laravel 9 with Composer in macOS, Ubuntu, Windows

This step by step tutorial explains how to install the latest Laravel 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 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 Project

You need to execute the given below command to install Laravel 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:


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


I am Digamber, a full-stack developer and fitness aficionado. I created this site to bestow my coding experience with newbie programmers. I love to write on JavaScript, ECMAScript, React, Angular, Vue, Laravel.

Recent Posts

React Router DOM 6 Fetch Current URL / Pathname Tutorial

If you want to learn how to get the current route's name, component pathname or…

2 days ago

React Js Hide & Show with React Bootstrap Collapse Tutorial

React show and hide example. In this tutorial, we will show you how to step…

5 days ago

How to Integrate Tabs in React Js with React Bootstrap

Tabs are one of the best UI elements for displaying multiple contents in a single…

1 week ago

How to Build Toast Component in React Js with Bootstrap

In this tutorial, we will learn how to create a toast notification component in the…

2 weeks ago

React Js Bootstrap Modal Popup Component Tutorial

Bootstrap offers tons of custom UI solutions. On top of that, it is easy to…

2 weeks ago

React Build Counter using useReducer Hook Tutorial

React js counter using the useReducer hook example. In this post, we will learn how…

2 weeks ago