How to Build Command-Line Apps
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.
Progress
Series Info
- Episodes
- 6
- Run Time
- 44m
- Difficulty
- Intermediate
- Last Updated
- Nov 11, 2015
- Version
- Latest
Series Episodes
- Episodes (6)
Introduction
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.Hello World
Let's start with the obligatory "hello world" of command line apps.Use Classes for Console Commands
Now that you've learned about the basic process of registering a command, let's now translate that code to a dedicated class.Case Study: The Laravel Installer
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
Rendering tabular data to the console is incredibly simple. Let me show you the entire process; it'll only take a moment or two.Exercise: A Command-Line Task App
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.
