I am trying to built a web framework (school project), the framework has to be API-oriented, and I will built the web app on an API-centric architecture, using PHP :
- The web backend will be a PHP rest API client
- The api backend will be a PHP rest API server and the libraries
- They will both be located on the same server, in separated folders
How do I make request to my API located on the same server ? I am afraid that making HTTP request with curl on the same server would be too heavy, what is the other alternative ?
Thanks