PHP 5.3+ environment manager/helper