Hello,
It seems to be a simple job for me, I guess you are having trouble with API creation (In JSON) and then the communication with your php page.
Please allow me to handle this for you, I have 10yrs of exp and I am good in what I do.
Looking forward.
VN