Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -647,6 +648,33 @@ 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 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
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
Expand Down