PHP Classes
elePHPant
Icontem

PHP JSON RPC Objective Server: Handle API requests to a JSON RPC server

Recommend this page to a friend!
  Info   View files Example   View files View files (11)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2015-11-11 (3 years ago) RSS 2.0 feedNot enough user ratingsTotal: 224 All time: 7,995 This week: 312Up
Version License PHP version Categories
intortus-json-rpc 1.1.3GNU General Publi...5.3PHP 5, Libraries, Web services
Description Author

This package can handle API requests to a JSON RPC server.

It can register named request handler objects that will handle JSON RPC requests with those names.

The main class parses the request parameters from the HTTP POST body data and dispatches the request to the registered request handler objects.

The class takes the handler object response and creates a JSON encoded response to be returned by the JSON RPC server.

  Performance   Level  
Name: martin barker <contact>
Classes: 14 packages by
Country: United Kingdom United Kingdom
Age: 30
All time rank: 29614 in United Kingdom United Kingdom
Week rank: 160 Up8 in United Kingdom United Kingdom Up
Innovation award
Innovation award
Nominee: 2x

 

Details
Version
-------------------------------------------------------------------------------
Version 1.2 Moved Singleton Architecture for Objects into the Callable Object class.
Version 1.1.3 Fixed another by causing MethodNotFound incorrectly.
Version 1.1.2 Fixed a bug in the method registration system that prevented. methods from working.
Version 1.1 Added example of objective design pattern.
Version 1.0 JSON RPC Server supporting Objective Design Pattern.

Usage
-------------------------------------------------------------------------------
please see /index.php for example how to use

Autoloader
-------------------------------------------------------------------------------
This Libary provides an autoloader that has to be used to load these classes.
DO NOT TRY AND INCLUDE ANYTHING FROM INSIDE THE JSONRPC FOLDER. the auto loader will do this for you.

Code outline
-------------------------------------------------------------------------------
There is a uncompleted version of phpDocumentation for this procat at: https://mega.nz/#!SEMSWSgQ
this only provides outlines for the handler.php as that is the only file you would normally be interacting with.
  Files folder image Files  
File Role Description
Files folder imageAPI (1 file)
Files folder imageintortus (1 file, 1 directory)
Accessible without login Plain text file index.php Example Example Server entry point file
Accessible without login Plain text file ReadMe.txt Doc. Readme
Accessible without login Plain text file test.php Example example script showing how to test the serevr

  Files folder image Files  /  API  
File Role Description
  Plain text file example.php Class Example use of objective design for use in index.php

  Files folder image Files  /  intortus  
File Role Description
Files folder imagejsonrpc (6 files)
  Accessible without login Plain text file autoload.php Aux. Autoloader for intortus Library

  Files folder image Files  /  intortus  /  jsonrpc  
File Role Description
  Plain text file callableobject.php Class base object for all classes that are provided to the server
  Plain text file error.php Class error object that get's provided as a response to an error'd request
  Plain text file handler.php Class Main Source: the JSON RPC Server
  Plain text file request.php Class request object file used to convert json request into Objects in PHP
  Plain text file response.php Class response object file used to convert response to JSON code
  Plain text file returnableobject.php Class base object for any object that returns though the JSON RPC server

 Version Control Unique User Downloads Download Rankings  
 0%
Total:224
This week:0
All time:7,995
This week:312Up