| title | Installation |
|---|---|
| description | Create a new Laravel Zero project |
| extends | _layouts.documentation |
| section | content |
Requires PHP 7.3+
Laravel Zero utilizes Composer to manage its dependencies. So, before using Laravel Zero, make sure you have Composer installed on your machine.
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 $HOME/.composer/vendor/bin.
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-cliAlternatively, 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-cliYou will then need to run the app:rename command to rename your project:
php application app:rename [movie-cli]