Utility classes to write PHP command-line scripts