Summary
Throughout this chapter, we have familiarized ourselves with some of the interesting features and tooling around PHP CLI. This chapter started with a basic introduction to PHP CLI SAPI, as one of the many SAPI interfaces in PHP. We then took a look into a simple but powerful Console component, learning how easy it is to create our own console applications. The I/O streams section helped us understand the standard streams, and how they are handled by PHP. Finally, we looked into the process control functions offered by the PCNTL extension. Combined together, these functions open up a wide range of possibilities to write our console applications. While the overall console application development might not seem interesting enough in ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access