Skip to content
This repository has been archived by the owner on Oct 28, 2020. It is now read-only.

Latest commit

 

History

History
42 lines (28 loc) · 1.5 KB

installation.md

File metadata and controls

42 lines (28 loc) · 1.5 KB
title description extends section
Installation
Create a new Laravel Zero project
_layouts.documentation
content

Installation

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.

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 $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-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

You will then need to run the app:rename command to rename your project:

php application app:rename [movie-cli]