In this series, we'll learn how how to build command-line apps from scratch, using Symfony's excellent console component. In no time, you'll be whipping up executables to perform all sorts of tasks.
Ever used Laravel's installer utility? What about Homestead, or Behat, or PHPSpec? If so, then you've indirectly benefited from the Symfony Console component.
Let's start with the obligatory "hello world" of command line apps.
Now that you've learned about the basic process of registering a command, let's now translate that code to a dedicated class.
To continue our learning, let's review the makeup of Laravel's command-line installer tool. In fact, we'll reproduce it from scratch!
Rendering tabular data to the console is incredibly simple. Let me show you the entire process; it'll only take a moment or two.
Let's put everything we've learned so far to work, as we build a fun little task app that runs on the command line.