PHPackages                             phalanx/console - 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. phalanx/console

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

phalanx/console
===============

CLI application framework for Phalanx

v0.2.0(1mo ago)01↑2900%1MITPHPPHP ^8.4

Since Mar 23Pushed 1mo agoCompare

[ Source](https://github.com/havy-tech/phalanx-console)[ Packagist](https://packagist.org/packages/phalanx/console)[ Docs](https://github.com/havy-tech/phalanx-console)[ RSS](/packages/phalanx-console/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (3)Used By (1)

 [![Phalanx](brand/logo.svg)](brand/logo.svg)

phalanx/console
===============

[](#phalanxconsole)

Build CLI applications with the same scope-driven concurrency that powers Phalanx HTTP servers. Define commands as invokable classes, group them, load them from directories, and let the framework handle argument parsing, validation, and help generation.

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

[](#table-of-contents)

- [Installation](#installation)
- [Quick Start](#quick-start)
- [Defining Commands](#defining-commands)
- [Command Configuration](#command-configuration)
- [Grouping Commands](#grouping-commands)
- [Loading Commands from Files](#loading-commands-from-files)
- [The CommandScope](#the-commandscope)
- [Running Concurrent Work](#running-concurrent-work)

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

[](#installation)

```
composer require phalanx/console
```

Requires PHP 8.4+ and `phalanx/core`.

Quick Start
-----------

[](#quick-start)

```
