Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Padraic Brady's Blog:
The Mysteries Of Asynchronous Processing With PHP - Part 2 (CLI applications)
Sep 30, 2009 @ 08:32:01

In the second part of his series looking at asynchronous processing in PHP applications, Padraic Brady lays the ground work for the third part and shows how to work with command line Zend Framework applications.

Part 2 is a tangential detour into how to make a Zend Framework based application accessible from the command line before we delve into examples using this in future parts of the series. If you are not a Zend Framework user, I'm sure you can find relevant material online for your own preferred framework though the ZF pieces may still have some usefulness in understanding the approach from an MVC perspective.

In his examples he skips over the basics of using a command line application and jumps right to things like argument handling, creating a custom router and making a custom "calling script" to handle the configuration of the CLI application.

tagged: asynchronous processing zendframework cli