How to Install and Verify Laravel 9 on a Local Machine

This guide explains how to install Laravel 9 locally using Composer or the Laravel CLI, checks PHP version compatibility, and shows how to verify the installation by running Artisan to display the Laravel 9 development version.

php Courses
php Courses
php Courses
How to Install and Verify Laravel 9 on a Local Machine

If you want to start developing and testing with Laravel 9, you can install it locally.

Laravel 9 requires PHP 8, so ensure your PHP version matches before proceeding.

You can find more details about this version on Packagist.

Install via Composer with the following command:

composer create-project --prefer-dist laravel/laravel laravel-9-dev dev-develop

This command creates a new Laravel 9 project named laravel-9-dev from the development branch.

Alternatively, you can use the Laravel global CLI to create a new project from the dev branch: laravel new laravel-9-dev --dev After installation, navigate to the project directory and check the version with Artisan:

cd laravel-9-dev
php artisan --version

The output should display the Laravel 9 development version.

Related article: Laravel 9 released, new features overview!
Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

ComposerLaravelLaravel9
php Courses
Written by

php Courses

php中文网's platform for the latest courses and technical articles, helping PHP learners advance quickly.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.