PHP Library for the Command Line

Posted: Oct 07, 2008  Category: command-line


Not looking forward to using a different language to get some command line work done? It could be worth it, but we don't all have the spare time to learn. Cut some time with this PHP class.

PHP Command Line Library demo screenshotUsing my sexy new PHP CLI library you don't even to learn anything. It will be Ignited and posted properly when I get the chance, but for now take a look at the demo code and give it a try.

Pastebin: PHP Command Line Class

To get this working simply save the file in your web root and open up your command line tool of choice. In Windows that would be Run > cmd [Enter] and on Mac you hit CMD + Space > Terminal [Enter].


Type in:

php /path/to/file.php

The path to your file may well be something like:

Let me know what you think in the comments... in a few days when they work. :p

Comments

They said...

Phil Sturgeon says: "Comment fix finally deployed."
  left at 11:46:50 on Oct 07, 2008.

You say...?