PHP 5.4+ Convenience CLI helper