From d360289781225fb18375aa9cbf27d1a20a5edbf4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=B3zsa=20Zolt=C3=A1n?= <67325669+rozsazoltan@users.noreply.github.com> Date: Wed, 2 Dec 2026 11:08:06 +0100 Subject: [PATCH 1/2] docs: document Laravel CLI installation --- README.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/README.md b/README.md index 4293d90..218c294 100644 --- a/README.md +++ b/README.md @@ -47,6 +47,7 @@ Install multiple PHP versions side by side, each with its own isolated runtime, - [Environment variables](#environment-variables) - [Custom configure options](#custom-configure-options-macos-and-linux) - [Skip dependency installation](#skip-dependency-installation) + - [Laravel CLI](#laravel-cli) - [Debugging](#debugging) - [Known Issues](#known-issues) - [Contributing](#contributing) @@ -647,6 +648,31 @@ mise install php@8.4.3 Useful when dependencies are already present or managed externally (e.g. CI environments, containers, custom setups). +### Laravel CLI + +`verzly/mise-php` manages PHP only. The official Laravel CLI is a standalone executable distributed by the companion [`verzly/mise-laravel`](https://github.com/verzly/mise-laravel) plugin. Install the CLI alongside the PHP runtime: + +```sh +# Install the Laravel CLI plugin +mise plugin install laravel https://github.com/verzly/mise-laravel#latest + +# Install and select the latest stable Laravel CLI globally +mise use -g laravel@latest + +# Verify +laravel --version +``` + +Create a Laravel PHP application with the PHP runtime managed by `mise-php`. Install PHP first if needed (see [Get started](#get-started)): + +```sh +mise exec -- laravel new example-app --php +``` + +Node.js is required for the CLI's frontend dependency step; install it separately with mise (`mise use -g node@latest`) or your system package manager. The Laravel CLI is not the legacy Composer `laravel/installer`; use one installation method, not both. + +See the [Laravel CLI section](https://github.com/verzly/mise-laravel#laravel-cli) of the `mise-laravel` README for platform support, version pinning, upgrades, and Laravel for Rust usage. + ## Debugging ### PHP_VERBOSE=1 - mise-php debug output From 0666b4294000634e5b327f7d164cc47fa86d3818 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=B3zsa=20Zolt=C3=A1n?= <67325669+rozsazoltan@users.noreply.github.com> Date: Wed, 2 Dec 2026 11:09:57 +0100 Subject: [PATCH 2/2] docs: enable Laravel CLI auto-update --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 218c294..237792c 100644 --- a/README.md +++ b/README.md @@ -656,13 +656,15 @@ Useful when dependencies are already present or managed externally # Install the Laravel CLI plugin mise plugin install laravel https://github.com/verzly/mise-laravel#latest -# Install and select the latest stable Laravel CLI globally -mise use -g laravel@latest +# Install globally and keep the CLI on the latest release +mise use -g --tool-option auto_update=true laravel@latest # Verify laravel --version ``` +`auto_update` is opt-in and only honored in the global mise config. It keeps the CLI on the `latest` release; use `auto_update=12h` to check less often. + Create a Laravel PHP application with the PHP runtime managed by `mise-php`. Install PHP first if needed (see [Get started](#get-started)): ```sh