Added PHP functions and class (NOT YET IMPLEMENTED)