PHP updated with new API