Helper class for PHP CLI apps.