PHP Classes

What is the best PHP api creation class?: i need to create api to be executed in multiple devices

Recommend this page to a friend!
  All requests RSS feed  >  What is the best PHP api creation class?  >  Request new recommendation  >  A request is featured when there is no good recommended package on the site when it is posted. Featured requests  >  No recommendations No recommendations  

What is the best PHP api creation class?

Edit

Picture of John Mtulya by John Mtulya - 9 years ago (2015-10-16)

i need to create api to be executed in multiple devices

This request is clear and relevant.
This request is not clear or is not relevant.

+3

I need to develop a Web service that will be accessed from different connected devices such as Android phones.

Ask clarification

4 Recommendations

PHP CRUD REST API Server: REST API server with MySQLi based CRUD operations

This class can be used to implement a REST API server with MySQLi based CRUD operations.

It provides a base class that can connect to a MySQL database server using MySQLi and execute basic CRUD operations like creating, retrieving, updating and deleting records from a given table.

The REST server class itself extends the base CRUD class and processes requests looking for the requested API function. It dispatches the request if the function exists, or return a 404 response if it does not exist.

The REST class can also retrieve the request parameter data for HTTP GET, POST, PUT and DELETE methods, as well process the API call response setting the appropriate headers and HTTP status.

Applications implementing the API just need to extend the REST server class and implement the supported API calls as class methods.

A demonstration API class is provided to show how to implement a API to manage users with records stored in a database.
This recommendation solves the problem.
This recommendation does not solve the problem.

+2

Picture of Bharat Parmar by Bharat Parmar package author package author Reputation 455 - 8 years ago (2016-04-16) Comment

This class will have the CRUD methods using php-MySQLi by REST API standard.


PHP API Server Builder: Build a REST server API from custom classes

This package can build a REST server API from custom classes.

It can register classes that will handle API calls under given server URI.

The main class can handle the requests to the API server and call the respective handler classes.

Optionally a custom class can validate the key value that clients may be required to pass as authorized clients to access the API.
This recommendation solves the problem.
This recommendation does not solve the problem.

+3

Picture of Haseeb Ahmad Basil by Haseeb Ahmad Basil Reputation 505 - 9 years ago (2016-03-30) Comment

Build a REST server API from custom classes


PHP API Server: Route requests to API calls to handler classes

This class can route requests to API calls to handler classes.

It takes as parameters the name of an API call being invoked by a client via HTTP and an array of request parameters.

If the called API function is named Describe, the router class loads a class named Describe from the API directory path and makes the request be handled by that class.

For other API calls, the name of the call up to the / character defines the class that will handle the API call.

The name in front of the first / character defines the API call function name that is invoked on the API call handler class.

The router class checks first if a class file exists with that class name and loads it in that case. The router class also checks if the handler class also has a function with the invoked name before calling that handler class function.

API call error responses are returned in JSON encoded format.
This recommendation solves the problem.
This recommendation does not solve the problem.

+2

Picture of Ettore Moretti by Ettore Moretti package author package author Reputation 60 - 9 years ago (2015-10-16) Comment

This package, could be for you.


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.
This recommendation solves the problem.
This recommendation does not solve the problem.

+4

Picture of Dave Smith by Dave Smith Reputation 7620 - 9 years ago (2015-10-16) Comment

I would take a look at this one, it is a fairly simple implementation of a rest server.


Recommend package
: 
: