How to install Laravel 12.x-dev(dev)

Roberto Butti
3 min readAug 4, 2017

--

How to install Laravel 12.x-dev

If you want to play with the upcoming new version of Laravel (12.x-dev) you can easily install it.

This is a way to start to play with some new things in the master branch. We love to “live on the edge”, but it is not recommended for “production” projects. So try this only on your local machine because you are curious.

On “packagist”, if you look at “laravel/laravel” packages, you can see a version named “dev-master” at this URL: https://packagist.org/packages/laravel/laravel#dev-maste

https://packagist.org/packages/laravel/laravel#dev-master

The Laravel team is planning to release Laravel 12 on Febrary 24th 2025. (https://laravel.com/docs/master/releases#support-policy)

The“laravel/laravel” package also includes the upcoming new version of the “laravel/framework” packages at this URL: https://packagist.org/packages/laravel/framework#dev-master

The “laravel/laravel” package includes “laravel/framework 12.x-dev and it requires:

  • PHP version ≥ 8.2
  • PHPunit ≥ 11.5.3
  • Pint
  • Guzzle ≥ 7.8.2
  • Termwind 2
  • Collision 8
  • monolog/monolog version 3
  • Symfony packages upgraded to 7.2
  • Laravel Prompts
  • PHPStan 2

You can discover more things on the release on this packagist URL: https://packagist.org/packages/laravel/laravel#dev-master that has a dependency: https://packagist.org/packages/laravel/framework#dev-master

To install Laravel 12.0 dev, 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-master

Where:

  • laravel/laravel: is the package for the Laravel installation;
  • laravel-dev: is the new directory for your new project (you can change it);
  • dev-master: is the next version of Laravel.

OR If you prefer to use the “laravel” command, you can achieve the same goal with the following:

laravel new laravel-dev --dev

Once you have installed Laravel 12.x-dev, you can jump into the new directory (laravel-dev) and execute the artisan command:

$ cd laravel-dev
$ php artisan --version
Laravel Framework 12.x-dev
Laravel Framework 12.x-dev

Now you can start to play with the new features of Laravel 12.0 (the features that are already pushed on the master branch).

You can launch the local web server:

php artisan serve

New features of Laravel 12.x-dev

Some notes about the Laravel 12 release:

  • PHP 8.2 it will still be the minimum version of PHP supported (like Laravel 11)
  • Taylor announced a new Laravel Starter Kit https://laravel-news.com/laravel-starter-kits
  • In general, the Laravel 12 is the first major version that will have zero-breaking changes

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 use a Cloud Hosting Providers for example:

--

--

Roberto Butti
Roberto Butti

Written by Roberto Butti

I’m technophile. Vuejs and Laravel enthusiast! #vuejs #laravel. I love #coding

Responses (4)