This question already has an answer here:

How can I call a contract function from PHP and print the return? Is there any good PHP libraries for that? thanks.

marked as duplicate by niksmac, Richard Horrocks, Tjaden Hess, Rob Hitchens - B9lab, jeff Jul 8 '17 at 3:59

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.