PHP CLI template

CLITool is an abstract class for create command line tools with PHP. It parses the command arguments according to definitions in the subclass.

It works but it's still a work in progress. I'm not sure an abstract class is the best way to implement this functionality. I also think that functionalty for dealing with piped input/output may be a useful addition.

Details (and licence) are contained in the source. I'm posting it for two reasons:
  • Other people may find it useful
  • Posting it increases the changes of me remembering I made it

PHPCLITemplate-18-09-09.zip

If you have any question or comments please get in touch.