Laravel Installer - это официальная CLI‑утилита от команды Laravel, предназначенная для быстрого и удобного создания новых Laravel‑проектов. По сути, это альтернатива команде composer create-project, но с более современным подходом, расширенными возможностями и улучшенным пользовательским опытом. Позволяет создавать новые Laravel‑приложения одной командой:

laravel new project-name

Под капотом Installer:

  • скачивает актуальную версию Laravel;
  • создаёт структуру проекта;
  • устанавливает зависимости;
  • может автоматически настраивать окружение (git, база данных, фронтенд‑стек).

Начиная с Laravel 9+, Installer стал активно развиваться и получил функциональность, выходящую далеко за рамки простого "создать папку с кодом".

Installer устанавливается командой:

composer global require laravel/installer

Создание нового проекта:

laravel new blog

В результате:

  • будет создана папка blog;
  • загружена последняя стабильная версия Laravel;
  • установлены все зависимости;
  • сгенерирован APP_KEY.

Современные версии Laravel Installer запускают интерактивный мастер, который задаёт вопросы:

  • версия Laravel;
  • тип аутентификации;
  • использовать ли Laravel Breeze / Jetstream;
  • фронтенд‑стек (Blade, React, Vue);
  • тестовый фреймворк;
  • инициализация git‑репозитория.

Можно указать конкретную версию при установке:

laravel new app --version=10

Installer может автоматически:

  • инициализировать git;
  • создать первый коммит;
  • добавить .gitignore.

Пример установки Laravel через Composer:

composer create-project laravel/laravel blog

Работает, но уступает Installer по удобству и гибкости.


Флаги и команды

$ laravel
Laravel Installer 5.24.3

Usage:
  command [options] [arguments]

Options:
  -h, --help            Display help for the given command. When no command is given display help for the list command
      --silent          Do not output any message
  -q, --quiet           Only errors are displayed. All other output is suppressed
  -V, --version         Display this application version
      --ansi|--no-ansi  Force (or disable --no-ansi) ANSI output
  -n, --no-interaction  Do not ask any interactive question
  -v|vv|vvv, --verbose  Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

Available commands:
  completion  Dump the shell completion script
  help        Display help for a command
  list        List commands
  new         Create a new Laravel application
$ laravel new -h
Description:
  Create a new Laravel application

Usage:
  new [options] [--] <name>

Arguments:
  name

Options:
      --dev                        Install the latest "development" release
      --git                        Initialize a Git repository
      --branch=BRANCH              The branch that should be created for a new repository [default: "main"]
      --github[=GITHUB]            Create a new repository on GitHub [default: false]
      --organization=ORGANIZATION  The GitHub organization to create the new repository for
      --database=DATABASE          The database driver your application will use. Possible values are: mysql, mariadb, pgsql, sqlite, sqlsrv
      --react                      Install the React Starter Kit
      --vue                        Install the Vue Starter Kit
      --livewire                   Install the Livewire Starter Kit
      --livewire-class-components  Generate stand-alone Livewire class components
      --workos                     Use WorkOS for authentication
      --no-authentication          Do not generate authentication scaffolding
      --pest                       Install the Pest testing framework
      --phpunit                    Install the PHPUnit testing framework
      --npm                        Install and build NPM dependencies
      --pnpm                       Install and build NPM dependencies via PNPM
      --bun                        Install and build NPM dependencies via Bun
      --yarn                       Install and build NPM dependencies via Yarn
      --boost                      Install Laravel Boost to improve AI assisted coding
      --using[=USING]              Install a custom starter kit from a community maintained package
  -f, --force                      Forces install even if the directory already exists
  -h, --help                       Display help for the given command. When no command is given display help for the list command
      --silent                     Do not output any message
  -q, --quiet                      Only errors are displayed. All other output is suppressed
  -V, --version                    Display this application version
      --ansi|--no-ansi             Force (or disable --no-ansi) ANSI output
  -n, --no-interaction             Do not ask any interactive question
  -v|vv|vvv, --verbose             Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

Source: Orkhan Alishov's notes