whatisgithub

What is prompts?

laravel/prompts — explained in plain English

Analysis updated 2026-07-28 · repo last pushed 2026-07-24

720PHPAudience · developerComplexity · 2/5ActiveSetup · easy

In one sentence

Laravel Prompts is a PHP package for adding beautiful, interactive, form-like prompts to command-line applications, complete with placeholder text and built-in validation for a smoother user experience.

Mindmap

mindmap
  root((repo))
    What it does
      Interactive CLI prompts
      Form-like terminal UX
      Placeholder text support
      Built-in validation
    Tech stack
      PHP
      Laravel Artisan
    Use cases
      Scaffold new projects
      Database migration tools
      App configuration wizards
    Audience
      PHP CLI developers
      Laravel Artisan users

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Build an interactive CLI wizard that asks users for database credentials with validation.

USE CASE 2

Create a project scaffolding tool that guides users through selecting features and options.

USE CASE 3

Add polished, form-like prompts to a Laravel Artisan command for app configuration.

USE CASE 4

Replace raw terminal text input with guided prompts that include placeholder text and validation.

What is it built with?

PHPLaravelArtisan CLI

How does it compare?

laravel/promptsspatie/laravel-event-projectordavid-crty/databasement
Stars720637815
LanguagePHPPHPPHP
Last pushed2026-07-242019-09-20
MaintenanceActiveDormant
Setup difficultyeasymoderateeasy
Complexity2/53/52/5
Audiencedeveloperdeveloperops devops

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 5min

Install via Composer in a Laravel project, works out of the box with Artisan commands.

No license information is provided in the explanation, so the licensing terms for this package are unknown.

So what is it?

Laravel Prompts is a PHP package that lets you add beautiful, user-friendly forms to command-line applications. Instead of making people type raw commands into a terminal, you can present them with interactive prompts that feel more like filling out a form in a web browser, complete with placeholder text and built-in validation. At a high level, the package gives developers a set of tools to ask users for input in a structured way. Rather than building a basic text prompt from scratch and handling all the edge cases themselves, developers can use these pre-built components to create a smoother experience. The idea is to bring the polish of web forms, things like guiding placeholder text and checking that input is valid before moving on, into the terminal. The primary audience is developers building command-line tools in PHP, especially those working with Laravel's Artisan console system (Laravel's built-in way of creating command-line commands). For example, if you're building a tool that scaffolds new projects, migrates a database, or configures an application, you might need to ask the user several questions, what database engine they're using, what their username is, whether they want certain features enabled. This package lets you present those questions in a clean, guided way rather than leaving users to figure out the right format on their own. The README is fairly brief and points readers to the official Laravel documentation site for full details, so it doesn't dive into the specific prompt types available or the exact API. What's clear from the introduction, though, is that the focus is on bringing browser-quality user experience to a place where it's historically been lacking, the command line, which typically offers only the most basic text input.

Copy-paste prompts

Prompt 1
I want to add interactive prompts to my Laravel Artisan command using Laravel Prompts. Help me write a command that asks the user for their database engine, username, and whether they want certain features enabled, with placeholder text and validation.
Prompt 2
Show me how to use Laravel Prompts to create a CLI wizard in PHP that guides a user through configuring a new application step by step, including text input, confirmations, and select menus.
Prompt 3
I am building a PHP CLI tool that scaffolds new projects. How can I use Laravel Prompts to present form-like questions with validation so users do not have to guess the correct input format?
Prompt 4
Help me add placeholder text and built-in validation to my existing Laravel Artisan command using Laravel Prompts so users get a browser-quality experience in the terminal.

Frequently asked questions

What is prompts?

Laravel Prompts is a PHP package for adding beautiful, interactive, form-like prompts to command-line applications, complete with placeholder text and built-in validation for a smoother user experience.

What language is prompts written in?

Mainly PHP. The stack also includes PHP, Laravel, Artisan CLI.

Is prompts actively maintained?

Active — commit in last 30 days (last push 2026-07-24).

What license does prompts use?

No license information is provided in the explanation, so the licensing terms for this package are unknown.

How hard is prompts to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is prompts for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.