adds php mock api support