After using rakit/console for years, I finally decided to fork it (it hasn’t been updated for 8 years) and create my own version of this simple PHP console library. It allows you to easily create console applications in PHP. The new version is called PHP Console Kit and comes with several improvements and new features.
- Animated (ASCII) header!
- Support for grouping commands
- Commands are displayed in registration order rather than alphabetical order.
- Added ‘Color’ constants such as ‘Color::RED’ instead of relying on string values such as ‘red’.
- Compact command line output for better readability
- Added PHPUnit tests for groups, ordering, colours, headers and list formatting.
- A generic ’examples/cli’ showcase script has been added.
- The bundled ‘hiddeninput.exe’ has been removed; secret input on Windows now fails explicitly instead of relying on an opaque binary.
