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.
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-developThis 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 --versionThe output should display the Laravel 9 development version.
Related article: Laravel 9 released, new features overview!
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
php Courses
php中文网's platform for the latest courses and technical articles, helping PHP learners advance quickly.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
