Updated to PHP endpoint