PHP Classes

RPC API Framework: Implement RPC servers for different formats

Recommend this page to a friend!
  Info   View files View files (15)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 58%Total: 530 All time: 5,646 This week: 338Up
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: 1745250 in United States United States
Week rank: 312 Up38 in United States United States Up
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files  
File Role Description
Files folder imagelib (6 files, 4 directories)
Files folder imagerpc (2 files)
Accessible without login Plain text file index.php Example Sample landing page.

  Files folder image Files  /  lib  
File Role Description
Files folder imagecore (2 files)
Files folder imagerequests (1 file)
Files folder imageRequests (1 file)
Files folder imageresults (2 files)
  Plain text file RPCEngine.class.php Class This is the driving class for all calls to remote procedures.
  Plain text file RPCHandler.class.php Class This is the base class which all other classes wishing to implement remote procedures should inhert from.
  Plain text file RPCHandlerRegistrant.class.php Class A data structure class which facilitates the registering of procedures to a namespace.
  Plain text file 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.
  Plain text file RPCRequest.class.php Class A normalized data structure for RPC requests.
  Plain text file RPCResult.class.php Class Base class for all RPC result types.

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

  Files folder image Files  /  lib  /  requests  
File Role Description
  Plain text file JSONRPCRequest.class.php Class Processes and turns raw JSON into a JSONRPCRequest

  Files folder image Files  /  lib  /  Requests  
File Role Description
  Plain text file XMLRPCRequest.class.php Class XML RPC Request Parser

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

  Files folder image Files  /  rpc  
File Role Description
  Plain text file ExampleRPCHandler.class.php Class Sample RPC Handler
  Plain text file HelpRPCHandler.class.php Class Help RPC Handler

 Version Control Unique User Downloads Download Rankings  
 0%
Total:530
This week:0
All time:5,646
This week:338Up
User Ratings User Comments (1)
 All time
Utility:83%StarStarStarStarStar
Consistency:83%StarStarStarStarStar
Documentation:-
Examples:83%StarStarStarStarStar
Tests:-
Videos:-
Overall:58%StarStarStar
Rank:1469
 
Thank you for sharing
13 years ago (Larry Lee)
70%StarStarStarStar