Back to Vol 19, Issue 4

PHP Architect · Vol 19, Issue 4 · April 2020

The Workshop: Easy CLI PHP with Symfony Console 5

by Joe Ferguson

Writing console commands with PHP is something I have always taken for granted. I started my career having learned Linux and command line server configuration and was very comfortable writing small applications with BASH scripts, Python, and even dabbling in C and Microsoft Qbasic. These commands copied files to a backup location, process batched data records in CSV, XML, and various other formats. By the time I discovered PHP, the community had just seen early builds of PHP 5, and the entire ecosystem was in for a shock. Once comfortable with PHP, I began writing small CLI commands in PHP instead of Python (or BASH). It was quite liberating to flex the same language for both web and command line applications.

The full article is in PHP Architect Vol 19, Issue 4. Subscribe to read it and every new issue.

Subscribe
Joe Ferguson

About the author

Joe Ferguson

Joe Ferguson is a PHP developer and community organizer. He is involved with many different technology related initiatives in Memphis including the Memphis PHP User group. He’s been married to his extremely supportive and amazing wife for a really long time and she turned him into a crazy cat man. They live in the Memphis suburbs with their two cats.

Mastodon: https://phpc.social/@joepferguson

Our Partners

Collaborating with industry leaders to bring you the best PHP resources and expertise

Interested in partnering? Get in touch →