Added PHP API for diverse set of functions