If you want to play with the upcoming new version of Laravel (9.0) you can easily install it.
This is a way just to start to play with some new things in master branch. It is because we love to “live on the edge” but it is not recommended for “production” project. So try this only in your local machine, because you are curious.
On packagist, if you look at “laravel/laravel” packages, you can see that there is a version named “dev-develop”.
The Laravel team are planning to release Laravel 9 on September 2021.
This version includes the upcoming new version of the “laravel/framework” packages.
You can see that “laravel/laravel” includes “laravel/framework 9.0” and it requires PHP version ≥ 7.4 and PHPunit 9. Laravel 8 is supporting also PHP version 7.3. So if you are planning to use Laravel 9 on next September, check your PHP version.
You can discover more thing on the release on this packagist URL: https://packagist.org/packages/laravel/laravel#dev-develop
To install Laravel 9.0 you need to launch composer create-project as usual and then you need to set the “dev-develop” version of the “laravel/laravel” package:
composer create-project --prefer-dist laravel/laravel laravel-dev dev-develop
- laravel/laravel: is the package for the Laravel installation;
- laravel-dev: is the new directory for your new project (you can change it);
- dev-develop: is the next version of Laravel.
OR If you prefer to use the “laravel” command you can achieve the same goal with:
laravel new laravel-dev --dev
Once you have installed Laravel 9, you can enter in the new directory (laravel-dev) and execute the artisan command:
$ cd laravel-dev
$ php artisan --version
Laravel Framework 9.x-dev
Now you can start to play with the new features of Laravel 9.0 (the features that are already pushed on master branch).
You can launch the local web server:
php artisan serve
Choose your hosting provider (with affiliate code)
If you need a Cloud Server with a Web Server, PHP8 and MySQL (MariaDB), I would like to suggest you to use a Cloud Hosting Providers for example:
I wrote a quick tutorial for installing your LEMP server on Ubuntu https://medium.com/@robertodev/how-to-setup-your-lemp-server-on-ubuntu-17-04-6910b18a3679