Download the PHP package michel/console without Composer
On this page you can find all versions of the php package michel/console. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download michel/console
More information about michel/console
Files in michel/console
Package console
Short Description A lightweight PHP library designed to simplify command handling in console applications.
License MIT
Informations about the package console
Michel Console
Your CLI commands, one class each.
Implement one interface, declare your arguments and options, register the command. Help, validation, colors, tables and prompts come with it. Nothing else to install.
PHP 7.4 to 8.4 · No dependency · Any framework
📖 Documentation · Website
Install
Quick start
Why Console
| No dependency | Pure PHP with mbstring, json and ctype. Nothing else in your vendor/. |
| Any framework | Symfony, Laravel, Slim or none: build the CommandRunner yourself or take it from your container. |
| Help for free | bin/console lists your commands, --help describes one, c:c runs cache:clear. |
| Output that behaves | Messages, tables, lists, progress bars and prompts. Errors go to STDERR, colors turn off in files and pipes (and with NO_COLOR). |
| Precise exit codes | 0 success, 1 error, 10 unknown command, 11 invalid arguments, 12 ambiguous name. |
What Console will never do
add a dependency · require a framework · scan your folders for commands · dispatch events · need a configuration file
Documentation
The documentation covers commands, arguments, options, the command-line syntax, reading the input, Output and ConsoleOutput, colors, help and verbose mode, exit codes and testing a command.
License
MIT
All versions of console with dependencies
ext-mbstring Version *
ext-json Version *
ext-ctype Version *