Download the PHP package alex-kassel/console-ux without Composer
On this page you can find all versions of the php package alex-kassel/console-ux. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download alex-kassel/console-ux
More information about alex-kassel/console-ux
Files in alex-kassel/console-ux
Package console-ux
Short Description Unified Artisan console UX for Laravel: interactive Prompts for humans, deterministic structured guidance for AI agents and CI.
License MIT
Homepage https://github.com/alex-kassel/console-ux
Informations about the package console-ux
Laravel Console UX (alex-kassel/console-ux)
Unified Artisan console UX for Laravel: interactive Prompts for humans, deterministic structured guidance for AI agents and CI pipelines.
Requirements
- PHP:
^8.2,^8.3, or^8.4 - Laravel (
illuminate/console,illuminate/support):^11.0,^12.0, or^13.0
Why Console UX?
Modern Laravel Artisan commands operate in two fundamentally different environments:
- Human Developers: Sit at interactive TTY terminals and enjoy colorful, searchable, autocompleted prompts via
Laravel\Prompts. - Autonomous AI Coding Agents & CI Pipelines: Run headless commands (
--no-interaction) and need deterministic, fail-fast guidance instead of hanging prompts or ambiguous single-line errors.
alex-kassel/console-ux bridges this gap with a single trait:
- Interactive: Seamlessly delegates to
Laravel\Prompts(select,text,confirm). - Non-Interactive: Fails immediately with structured diagnostics, missing argument highlights, available choices, usage examples, and AI agent remediation notes.
- Machine-Readable: Out-of-the-box
--jsonoutput rendering.
Installation
Install via Composer:
Usage
Simply use the InteractsWithConsoleUx trait in any Artisan command:
Non-Interactive Output Example
When executed with --no-interaction or by an AI agent tool runner without the required argument:
The agent or CI pipeline immediately understands what was missing, what options are valid, and the exact corrective command to run.
Testing
Run the test suite via PHPUnit:
Documentation
For full architectural details, see docs/console-ux.md.
License
The MIT License (MIT). Please see License File for more information.
All versions of console-ux with dependencies
illuminate/console Version ^11.0|^12.0|^13.0
illuminate/support Version ^11.0|^12.0|^13.0