Environment Class for PHP