LinuxCommandLibrary

laravel-zero

Create console applications using the Laravel framework

TLDR

Create a new Laravel Zero application

$ laravel-zero new [name]
copy

Update the installer to the latest version
$ laravel-zero self-update
copy

List the available installer commands
$ laravel-zero list
copy

SYNOPSIS

laravel-zero [command] [options]

PARAMETERS

new
    Creates a new Laravel Zero project.

serve
    Serves the application using PHP's built-in web server. (Primarily for development).

install
    Install a component (package).

list
    Lists all available commands.

make:command
    Creates a new console command.

make:event
    Creates a new event class.

make:listener
    Creates a new event listener.

make:provider
    Creates a new service provider.

--version
    Display the application version.

--help
    Display help for a specific command.

--quiet
    Do not output any message.

--verbose
    Increase verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debugging.

--ansi
    Force ANSI output.

--no-ansi
    Disable ANSI output.

--no-interaction
    Do not ask any interactive question.

DESCRIPTION

Laravel Zero is a micro-framework providing an elegant starting point for your console applications.

It is a lightweight version of Laravel that has been stripped down to the essentials, making it ideal for building CLI tools, APIs, and other small to medium-sized applications that don't require the full weight of the standard Laravel framework. It's pre-configured with essential components like a routing system, dependency injection, and a command-line interface (CLI) toolkit. Laravel Zero facilitates a streamlined development process by reducing boilerplate and providing a clear structure for your project.

EXTENDING FUNCTIONALITY

Laravel Zero can be extended with various components, similar to Laravel packages. These components can provide additional functionality such as database support, queue management, and more.

DIRECTORY STRUCTURE

The default directory structure of a Laravel Zero application is simpler than a full Laravel application, focusing on the essential files and directories for building console applications. Key directories include app/ for application logic and config/ for configuration files.

HISTORY

Laravel Zero was created by Nuno Maduro as a stripped-down version of Laravel tailored for console applications. It aims to provide a simple and fast development experience for CLI tools and other small applications where the full features of Laravel are not required. The framework has evolved over time to include more features and components, but remains focused on its lightweight nature.

Copied to clipboard