How to create and call a post API in PHP using React JS?

Topic summary

A developer is working with the Shopify PHP app template and needs guidance on implementing API functionality between the frontend and backend.

Technical Setup:

  • Using the official Shopify PHP app template from GitHub
  • Frontend: React JS
  • Backend: PHP

Core Question:
How to create a POST API endpoint in PHP and call it from the React JS side of the application.

The discussion appears to be newly opened with no responses yet, leaving the implementation question unresolved.

Summarized with AI on November 16. AI used: claude-sonnet-4-5-20250929.

https://github.com/Shopify/shopify-app-template-php. I setup project using this URL. How can I create post API in PHP and call in React JS side using this template.