Requires PHP 7.2.5+
Laravel Zero utilizes Composer to manage its dependencies. So, before using Laravel Zero, make sure you have Composer installed on your machine.
Via Laravel Zero Installer
First, download the Laravel Zero installer using Composer:
composer global require "laravel-zero/installer"
Make sure to place composer's system-wide vendor bin directory in your
$PATH so the laravel Zero executable can be located by your system. This directory exists in different locations based on your operating system. On macOS and GNU/Linux distributions, it's
Once installed, the
laravel-zero new command will create a fresh Laravel Zero installation in the directory you specify. For instance,
laravel-zero new movie-cli will create a directory named
movie-cli containing a fresh Laravel Zero installation with all of Laravel Zero's dependencies already installed:
laravel-zero new movie-cli
Via Composer Create-Project
Alternatively, you may also install Laravel Zero by issuing the Composer
create-project command in your terminal:
composer create-project --prefer-dist laravel-zero/laravel-zero movie-cli