A generic PHP class to build line-oriented command interpreters