This tutorial will walk you through the process of installing the latest Laravel version 9 and the Composer package manager on your development system.
You can learn how to create a Laravel CRUD Web Application from scratch in our detailed tutorial.
Laravel Tutorial
What exactly is Laravel?
Taylor Otwell created Laravel, a free open source PHP framework.
It follows the MVC design pattern. Laravel provides elegant and robust syntax for creating a robust software application that can be developed quickly.
What new features does Laravel provide:
- 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.
Using Homebrew, install Composer.
Let us quickly install Composer using Homebrew, then open a command-line tool and run the following command:
If you don’t already have Homebrew installed, click 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 2022-05-20 10:28:10
Install Laravel Project
To install the Laravel project on your development system, run the command listed below.
composer create-project --prefer-dist laravel/laravel new-laravel-project
The above command will begin displaying the Laravel project’s installation progress in the window of your command-line tool.
When the installation is finished, run the following command to access the Laravel project folder.
composer cd new-laravel-project
Run Laravel Application
In this step, we will launch the Laravel application on the local development server using the PHP artisan command.
php artisan serve
Your project has begun, and you will be notified in the window of your command-line tool.
Laravel development server started: http://127.0.0.1:8000
Your project will start on port 8000 by default, but you can change this by running the following command.
php artisan serve --port=8888
Laravel development server started: http://127.0.0.1:8888

Conclusion
We successfully installed the latest version of laravel using the Composer package manager in this tutorial.