Abstract class to ease shell scripts in php.