Who said that shell scripts doesn’t need a framework ? PHP CLI Framework is a lightweight Framework that allows you to create extremely robust shell scripts within minutes. The framework written by Tj Holowaychuk of vision media, provides simple PHP5 interface for shell scripting. Unfortunately there is no documentation or sample code provided with the framework, the only program reportedly implementing the PHP CLI Framework is a tool called DRAN, which is the Drupal Analysis Tool and can be found at http://drupal.org/project/dran.
phpcliframework
PHP CLI Framework Features include :

  • Debugging
  • Unified help documentation / option creation
  • STDIN and STDERR using CLI::prompt() and CLI::error()
  • List theme including bullet, numeric, and alpha list types
  • Table theme which calculates dimensions