REST API Structure for Web and mobile API #api
Edit
by Ritesh Upadhyay - 9 years ago (2015-05-06)
I want a PHP REST API Structure for Web and mobile development
| I want to develop a PHP 5 application that provides REST API Structure for Web and mobile application to use in areal time project in my company.
Can any one guide regrading this point or provide rest structure? |
Ask clarification
2 Recommendations
PHPLicengine API: Send HTTP requests to call REST Web service APIs
This class can send HTTP requests to call REST Web service APIs.
It can send HTTP requests to a given Web service API and decodes the response that may be returned in XML or JSON format.
The class uses Curl to send requests but it can customize options of the request to be sent to the server using a custom request sender callback function.
| by PHPLicengine package author 90 - 7 years ago (2017-10-12) Comment
You can use this API library for any needs. With PHPLicengine API library you can contact with any RESTApi server and receive response as json/xml and parse them. |
PHP REST Server Class: REST Web service server that maps URL to API calls
This package implements a REST Web service server that maps URL to API calls.
The main class can register one or more objects that will handle API calls. Handler objects must be of classes based on the REST object class.
The main class also dispatches API calls by extracting the handler object name, API call function name and any parameters from the URL.
The return values of the REST object handler functions are returned JSON encoded as responses to the REST requests.
| by Dave Smith 7620 - 9 years ago (2015-05-09) Comment
It sounds like you are looking for the server. Here is one that can send requests to the appropriate class and return the results. I am not sure about the mobile requirement, or if the mobile differs from the web. I think this class is as good place to start. |