Download the PHP package moox/prompts without Composer

On this page you can find all versions of the php package moox/prompts. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package prompts

Moox Prompts

CLI- and Web-compatible prompts for Laravel Artisan commands – with a flow that can continue step-by-step in the browser.

What does a Flow Command look like?

To make a command work as a flow in both CLI and Web, you only need to follow these rules:

That’s all you need in the command – no special flow methods, no custom persistence.
Everything else (CLI/Web differences, state, web UI) is handled by the package.

Running flows in the browser (Filament)

Once you’ve created a flow command, you can run it in both CLI and browser.

CLI

The command behaves like a normal Laravel Artisan command – all prompts are shown in the terminal.

Web

  1. Open the Filament page “Run Command” (automatically added to navigation)
  2. Select your flow command from the list
  3. Click “Start command”
  4. The flow runs step by step in the browser:
    • Every step shows a prompt (text, select, multiselect, confirm, etc.)
    • After each step you see the step’s output
    • You can cancel any time with “Back to command selection”
    • After a successful run the button switches to “Start new command”

Note: All commands executed via the web UI are automatically logged in the database (see Command Execution Logging).

How and why reflection is used

If you’re just writing commands, you don’t need to care about reflection.
To understand what happens under the hood, here’s a short overview.

Important:
Reflection is only used inside the package internals, not in your flow commands.
Your commands remain normal Laravel commands – you only need to:

The package takes care of the rest (reflection, state, web flow).

Are there alternatives without reflection?

Yes – technically we could avoid reflection, but it would degrade the DX:

That’s why we intentionally keep reflection encapsulated in the package and keep your command API as simple as possible.

Command Execution Logging

All commands executed via the web interface are automatically logged in the database.
You can inspect them via the Filament resource “Command Executions”.

Status

Each execution has one of the following statuses:

Stored information

For each execution we store:

Important: step_outputs vs context

It’s important to understand the difference between these two fields:

If you want to see the user’s choice in the step output as well, you can explicitly print it:

This way you have:

Running the migration

To enable logging, run:

This creates the command_executions table with all necessary fields.

Filament resource

The Filament resource “Command Executions” is automatically available in the Filament navigation (if enabled). There you can:

The resource also shows which step a command failed on (failed_at_step) or where it was cancelled (cancelled_at_step).

License

See LICENSE.md


All versions of prompts with dependencies

PHP Build Version
Package Version
Requires moox/core Version 5.0.12
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package moox/prompts contains the following files

Loading the files please wait ...