added phpapi doc