RPC API Framework: Implement RPC servers for different formats

Recommend this page to a friend!
  Info   View files (15)   Download .zip   Reputation   Support forum (2)   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 530 All time: 5,566 This week: 338
Version License PHP version Categories
rpc-api-framework 1.0GNU General Publi...4.0PHP 5, Libraries, Web services
Description Author

This package can be used to implement RPC servers for different formats.

It provides a common API define functions that can act as Web services handlers that can respond to requests with data in different formats.

It can handle the requests and call registered class functions that return the data to be served to clients.

The data is translated back to any of the supported. Currently it supports serving response data in JSON, XML and CSV formats.

Innovation Award
PHP Programming Innovation award nominee
February 2011
Number 5

Prize: One downloadable copy of Komodo IDE
Web service providers can return data in many different formats. Depending on the circumstances, some formats may be more convenient for the developers than others.

This class provides a generalized solution to return Web service response data in different formats, leaving to the Web service consumer developer to choose a format that is more convenient.

Manuel Lemos
Picture of AJ
Name: AJ <contact>
Classes: 2 packages by
Country: United States United States
Age: ???
All time rank: 1724232 in United States United States
Week rank: 762 76 in United States United States
Innovation award
Innovation award
Nominee: 1x

File Role Description
lib (6 files, 4 directories)
rpc (2 files)
index.php Example Sample landing page.

  Files  /  lib  
File Role Description
core (2 files)
requests (1 file)
Requests (1 file)
results (2 files)
   RPCEngine.class.php Class This is the driving class for all calls to remote procedures.
   RPCHandler.class.php Class This is the base class which all other classes wishing to implement remote procedures should inhert from.
   RPCHandlerRegistrant.class.php Class A data structure class which facilitates the registering of procedures to a namespace.
   RPCProcedure.class.php Class This is a container class for the actual procedure. It allows adding various bits of meta-data to the procedure for further processing.
   RPCRequest.class.php Class A normalized data structure for RPC requests.
   RPCResult.class.php Class Base class for all RPC result types.

  Files  /  lib  /  core  
File Role Description
   Exception.class.php Class Custom Exception base class.
   Query.class.php Class Helper class for accessing request data.

  Files  /  lib  /  requests  
File Role Description
   JSONRPCRequest.class.php Class Processes and turns raw JSON into a JSONRPCRequest

  Files  /  lib  /  Requests  
File Role Description
   XMLRPCRequest.class.php Class XML RPC Request Parser

  Files  /  lib  /  results  
File Role Description
   JSONRPCResults.class.php Class Turns an RPC Result into JSON
   XMLRPCResults.class.php Class Translates an RPC result in to XML

  Files  /  rpc  
File Role Description
   ExampleRPCHandler.class.php Class Sample RPC Handler
   HelpRPCHandler.class.php Class Help RPC Handler

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:5,566
This week:338
User Comments (1)
Thank you for sharing
9 years ago (Larry Lee)

For more information send a message to info at phpclasses dot org.