It was very tough days for me after developing RESTful Web service in PHP using SLIM framework, I was excited to use it in my PHP project itself like we consume REST API in Android development. But I have no idea how can I consume or call REST API from my PHP project.
I searched and talk to PHP developer friends a lot but there is no luck because all suggesting to me to use framework for this. But I want to use it into PHP core for better understanding. Because I have no background in PHP, I am an Android Application Developer. I learn PHP for fun or my own project.
I learn a lot in this process. The solution lies inside PHP itself. Php has a library which is called cURL, used in calling RESTful web service or REST API.