PHP Classes

JSON RPC Client and Server: Implements JSON RPC protocol client and server

Recommend this page to a friend!
  Info   View files View files (14)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2024-01-09 (2 months ago) RSS 2.0 feedNot enough user ratingsTotal: 603 This week: 1All time: 5,173 This week: 560Up
Version License PHP version Categories
json-rpc-php 1.0.9GNU General Publi...5PHP 5, Web services
Description 

Author

This package implements JSON RPC protocol 2.0 client and server.

There is a client class that can send HTTP requests to a given JSON RPC server to call a specified function passing any additional parameters.

It can also send multiple JSON RPC requests and return the results of all calls.

Another class can process server requests by registering a given object of service class and dispatching requests to be handled by that object.

Innovation Award
PHP Programming Innovation award nominee
December 2012
Number 5


Prize: One book of choice by Packt
JSON RPC is a protocol created to be used in AJAX applications.

The fact that usually JavaScript is used on the browser side, made JSON an ideal format to serialize and unserialize the data exchanged with the server.

This package provides a PHP solution not only to create JSON RPC 2.0 based servers, but also to send requests from PHP applications to external JSON RPC servers.

Manuel Lemos
Picture of Mark Rolich
  Performance   Level  
Name: Mark Rolich <contact>
Classes: 8 packages by
Country: Armenia Armenia
Age: 43
All time rank: 9051 in Armenia Armenia
Week rank: 109 Up1 in Armenia Armenia Equal
Innovation award
Innovation award
Nominee: 2x

Details

This PHP package implements JSON-RPC v2.0 protocol (http://www.jsonrpc.org/specification). Supports: - Single and batch calls - JSON-RPC calls in context of server - Pluggable classes (services) Copyright (C) 2012 Mark Rolich

  Files folder image Files  
File Role Description
Files folder imageexamples (5 files, 1 directory)
Accessible without login HTML file documentation.html Doc. Documentation
Plain text file JsonRpcClient.php Class JSON-RPC Client
Plain text file JsonRpcException.php Class JSON-RPC Errors
Plain text file JsonRpcServer.php Class JSON-RPC Server
Accessible without login Plain text file license.txt Lic. LICENSE
Accessible without login Plain text file README Data README

  Files folder image Files  /  examples  
File Role Description
Files folder imagetests (3 files)
  Accessible without login Plain text file client.php Example Example client
  Plain text file DataService.php Class example service class
  Plain text file MathService.php Class example service class
  Plain text file OptionalParamsService.php Class Added support and tests for optional parameters in service methods
  Accessible without login Plain text file server.php Example Example server

  Files folder image Files  /  examples  /  tests  
File Role Description
  Accessible without login Plain text file errors.php Test Test for additional errors
  Accessible without login Plain text file optional_params.php Test Added support and tests for optional parameters in service methods
  Accessible without login Plain text file spec_examples.php Test Test for specification errors

 Version Control Unique User Downloads Download Rankings  
 100%
Total:603
This week:1
All time:5,173
This week:560Up