PHPackages                             laranail/prompter - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [CLI &amp; Console](/categories/cli)
4. /
5. laranail/prompter

ActiveLibrary[CLI &amp; Console](/categories/cli)

laranail/prompter
=================

A Laravel package by `simtabi` that extends and adds new functionality to `laravel/prompts`, providing a fluent API for crafting CLI forms and additional validators.

v1.5.0(1y ago)026MITPHPPHP &gt;=8.2

Since Jun 6Pushed 1y ago1 watchersCompare

[ Source](https://github.com/laranail/prompter)[ Packagist](https://packagist.org/packages/laranail/prompter)[ Docs](https://github.com/laranail/prompter)[ Fund](https://buymeacoffee.com/simtabi)[ RSS](/packages/laranail-prompter/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (4)Versions (3)Used By (0)

 [![Barua Banner](.github/assets/banner.png)](.github/assets/banner.png)

 **Prompter**

A Laravel package by `simtabi` that extends and adds new functionality to the `laravel/prompts` package,
 providing a fluent API for crafting CLI forms and additional validators.

 [Website](https://simtabi.com)  ·  [GitHub](https://github.com/laranail/prompter)  ·  [Discord](https://simtabi.com/discord)

---

Table of Contents
-----------------

[](#table-of-contents)

1. [Introduction](#prompter)
    - [Key Features](#key-features)
    - [Introduction](#introduction)
    - [Getting Started](#getting-started)
    - [Prerequisites](#prerequisites)
    - [Installation](#installation)
    - [Configuration](#configuration)
2. [Usage](docs/usage.md#usage)
    - [Instantiation](docs/usage.md#Instantiation)
    - [Special Functions](docs/usage.md#special-functions)
    - [Building a Form](docs/usage.md#building-a-form)
3. [Validation](docs/validation.md)
4. [Development](#development)
5. [Changelog](#changelog)
6. [Contributing](#contributing)
7. [Security](#security)
8. [Support](#support)
9. [Contributors](#contributors)
10. [Authors](#authors)
11. [License](#license)

---

Prompter
--------

[](#prompter)

`Prompter` is a powerful Laravel package that enhances the functionality, and acts as a fluent wrapper for the `laravel/prompts` CLI package. It is designed to make developing CLI applications easier, more robust, and more enjoyable. With `Prompter`, you get:

- A fluent API for crafting complex CLI forms effortlessly.
- An opinionated object-oriented chainable interface.
- Numerous built-in validators to ensure data integrity and security.
- Flexibility to define and use custom validators for specific business logic.

Key Features
------------

[](#key-features)

- **Fluent API**: Create complex CLI forms with ease using a fluent, readable, and maintainable API.
- **Validators**: Use built-in validators like `required`, `min`, `max`, `email`, `url`, and `regex`, or create custom validators to meet your specific needs.
- **Chainable Interface**: Enjoy an opinionated object-oriented chainable interface that simplifies CLI development.
- **Extended Functionality**: Adds new functionalities and validators to the existing `laravel/prompts` package.

`Prompter` is perfect for developers looking to build robust CLI applications in Laravel, ensuring a smooth and efficient development process.

Introduction
------------

[](#introduction)

This package aims to provide developers with enhanced mechanisms for creating intuitive CLI prompts. Building on the `laravel/prompts` package, it offers a more robust and feature-rich experience.

By extending `laravel/prompts`, this package retains all core features of the original while introducing new functionalities and validators to streamline CLI development. For a comprehensive understanding of the core features and functionalities, please refer to the [`laravel/prompts` official documentation](https://laravel.com/docs/prompts). This documentation will focus only on the additional features provided by `Prompter`.

---

Getting Started
---------------

[](#getting-started)

This section will guide you through the initial setup and basic usage of this package, enabling you to quickly start creating intuitive CLI prompts.

---

Prerequisites
-------------

[](#prerequisites)

Before installing this package, make sure that your system meets the following requirements:

- PHP &gt;= 8.2.
- Laravel &gt;= 10.x.
- Composer for managing dependencies.

Installation
------------

[](#installation)

Install the Package via Composer by running the following command in your current Laravel project directory:

```
composer require --dev laranail/prompter
```

Configuration
-------------

[](#configuration)

This package does not require any additional configuration. You can start using it right away after installation.

Usage
-----

[](#usage)

Please see [USAGE](./docs/usage.md) guide for more information on how build forms, and use this package.

Development
-----------

[](#development)

#### Install dependencies

[](#install-dependencies)

```
composer install
```

#### Tests

[](#tests)

```
composer ci
```

---

Changelog
---------

[](#changelog)

Please see [CHANGELOG](./.github/docs/CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](./.github/docs/CONTRIBUTING.md) for details.

Security
--------

[](#security)

Please see [SECURITY](./.github/docs/SECURITY.md) for details.

Support
-------

[](#support)

Please see [Support and Community](./.github/docs/SUPPORT.md) for details.

Contributors
------------

[](#contributors)

Please see [CONTRIBUTORS](./.github/docs/CONTRIBUTORS.md) for details.

Authors
-------

[](#authors)

- Imani ([@imanimanyara](https://twitter.com/imanimanyara))
- Easter ([@imanimanyara](https://github.com/eastermukora))

License
-------

[](#license)

Open-sourced software licensed under the MIT license. Please see [LICENSE](./.github/docs/LICENSE) for details.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~4 days

Total

2

Last Release

707d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e606811f3653a5a5a2a0bc39e2cfd2d52436e7f73da3e416dd13284c7ac87f0a?d=identicon)[simtabi](/maintainers/simtabi)

---

Tags

phpclilaravelvalidationlaravel-packagevalidatorsFormsOOPfluent-apicommand line interfacecustom-validatorspromptsartisan-commandsdevelopment-toolsobject-oriented-programminglaravel clisimtabiChainable InterfacelaranailLaravel Prompter

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/laranail-prompter/health.svg)

```
[![Health](https://phpackages.com/badges/laranail-prompter/health.svg)](https://phpackages.com/packages/laranail-prompter)
```

###  Alternatives

[nunomaduro/laravel-console-menu

Laravel Console Menu is an output method for your Laravel/Laravel Zero commands.

815412.0k48](/packages/nunomaduro-laravel-console-menu)[nunomaduro/laravel-console-task

Laravel Console Task is a output method for your Laravel/Laravel Zero commands.

2582.1M11](/packages/nunomaduro-laravel-console-task)[nunomaduro/laravel-console-summary

A Beautiful Laravel Console Summary for your Laravel/Laravel Zero commands.

662.0M3](/packages/nunomaduro-laravel-console-summary)[nunomaduro/laravel-console-dusk

Laravel Console Dusk allows the usage of Laravel Dusk in Laravel/Laravel Zero artisan commands.

16255.4k7](/packages/nunomaduro-laravel-console-dusk)[rahul900day/laravel-console-spinner

Laravel Console Spinner is a spinner output for Laravel command line.

76125.4k1](/packages/rahul900day-laravel-console-spinner)[yorcreative/laravel-argonaut-dto

Argonaut is a lightweight Data Transfer Object (DTO) package for Laravel that supports nested casting, recursive serialization, and validation out of the box. Ideal for service layers, APIs, and clean architecture workflows.

1062.8k1](/packages/yorcreative-laravel-argonaut-dto)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
