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.