Building a CLI with Symfony Console

ronan

Symfony is a powerful framework that provides a strong backbone for Drupal but did you know it can be used to write stand alone command line tools in PHP? This session will cover how to use the skills you built working with Drupal and apply them to writing tools and utilities that go way beyond simple bash scripts. By building on Symfony Console your command line tools will have powerful argument handling, logging, help text and much more with very little effort.

Using the example of Terminus, the command line interface for the Pantheon platform, we will cover the basics of writing a command line tool using PHP. We will also introduce some other PHP libraries that make writing commands even easier.

Stand on the shoulders of the same giants as Terminus, Drush and Drupal Console and make your custom developer tools awesome.

Session Track

Symfony

Experience Level

Intermediate

Drupal Version