SmartConsole - The smarter php console toolkit

GitHub issues GitHub forks GitHub stars GitHub license GitHub last commit Twitter

Have you ever wondered why it is so complicated to write a console application in PHP? Whichever library you use, you'll end up with hundreds of lines of configuration before you can even read the first 'Hello World' in the terminal.

That's over now! SmartConsole is the first console toolkit for PHP that you hardly have to configure at all. All you do is write classes as you are used to and document them properly. Smart Console analyzes your command handlers and makes all settings automatically so you can sit back and concentrate on your real goal.

SmartConsole is wrapped around the great webmozart/console package and its approach is based on the CLI of the ingenious Neos CMS. Besides it merges together some of the basic functionalities from the underlying console-package and advanced features like progress-bars from CLImate.

By the way, SmartConsole even supports dependency injection for it's command handler classes through PHP-DI, which makes it very easy to use as a base for a standalone application. Read on to learn more about these and the remaining amazing features.