Executing PHP from the command line enables us to interact with our applications in new and interesting ways: from performing site maintenance to scaffolding new projects, CLI tools like WP-CLI, Artisan, and Drush make it easy to interface with our code without ever opening a browser.
Attendees will be introduced to popular PHP CLI tools and their default capabilities. We'll discuss characteristics of good CLI scripts, strong use-cases for writing custom commands, then write several CLI programs across different platforms.
This presentation also has a companion repository, full of executable examples from this presentation.
- Symfony Console Component - Project documentation
- PHP-CLI Tools - GitHub repository
- Building PHP Daemons and Long Running Processes - Talk from php[tek] 2015 by Tim Lytle
- Exit Codes with Special Meanings - The Linux Documentation Project
- Understanding Exit Codes and How to Use Them in Bash Scripts - Article by Benjamin Cane
- CodeMash 2017 - January 13, 2017
- Nomad PHP (EU) – December 15, 2016 (joind.in)
- php[tek] 2016 – May 27, 2016 (joind.in)
- Columbus PHP Meetup – April 13, 2016 (joind.in)