Alpha
Alpha Laravel Bash is here. Read the release notes →

The shell framework for web artisans

Laravel Bash is a web application framework with expressive, elegant syntax. Routing, an ORM, templates, validation, queues, events and real-time broadcasting, built from the programs that are already installed on your server.

$git clone https://github.com/mrstebo/laravel-bash.git && cd laravel-bash && ./sail up -d
# routes/web.sh
route GET  /posts/{post}         PostController::show
route POST /orders/{order}/ship  OrderController::ship

# app/Http/Controllers/PostController.sh
PostController::show() {
  local post comments
  post=$(Post::find "$1") || abort 404
  comments=$(Comment::all | where post_id = "$1")
  view posts.show post="$post" comments="$comments"
}

Why Laravel Bash

Not a programming language.
Every program.

Laravel for PHP, Rust and Go each start with a programming language and build a framework inside it. Laravel Bash starts with the operating system. Every feature is a process, and Unix processes already know how to talk to each other: through output, exit codes, pipes, signals and files. So instead of writing a queue, we use mv. Instead of writing a WebSocket server, we use tail.

In a programming languageIn Laravel Bash
A function returns a valueA function prints to stdout, and $( ) catches it
Exceptions and try/catchA non-zero exit code and a message on stderr. if ! catches it, and trap ERR is the handler
Method chaining on a collectionA pipeline. take 3 closes the pipe, and SIGPIPE stops the query
Threads, promises, async/await& and wait -n. Each task is a real process, with its own memory
An event buskill -USR1 and trap
Redis, for queuesA folder, and mv
A WebSocket servertail -F, as Server-Sent Events
A template engineHeredocs
A garbage collectorThe process exits at the end of the request
A package managerapt-get, once, in the Dockerfile
A type systemEverything is a string. Quote it
A build stepNone. Save the file and refresh

The framework

Everything you need to ship.

A full-stack framework, made of small programs that each do one thing well.

Proven technology

Older than PHP. Counted live.

sort (1971), awk (1977) and Bash (1989) are all older than PHP (1995). These numbers were counted by the process that rendered this page.

24routes
26pages of docs
1483lines of Bash in framework/
0lines of PHP
799784this page's process ID

Write your next app in Bash.

It's already installed.