On his blog today, Richard Heyes notes that he's created a new class that combines some of the most common console-script functionality into once place - Console.
Just added a new class called Console, which wraps up some common Console script related functionality. All the methods are static, and it's PHP5 only. Methods include:
You can grab a copy of the class here as well as an example of its usage, showing how to build a menu and have the user input their information...