2017 © Pedro Peláez
 

library junior

JSONRPC 2.0 Client and Server

image

evilscott/junior

JSONRPC 2.0 Client and Server

  • Wednesday, August 20, 2014
  • by EvilScott
  • Repository
  • 5 Watchers
  • 37 Stars
  • 9,896 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 14 Forks
  • 0 Open issues
  • 6 Versions
  • 2 % Grown

The README.md

Junior - A JSON-RPC Client/Server in PHP Build Status

What is JSON-RPC?

From the JSON-RPC Spec:, (*1)

"JSON-RPC is a stateless, light-weight remote procedure call (RPC) protocol. Primarily this specification defines several data structures and the rules around their processing. It is transport agnostic in that the concepts can be used within the same process, over sockets, over http, or in many various message passing environments. It uses JSON (RFC 4627) as data format. It is designed to be simple!", (*2)

Why should I use Junior?

Junior is JSON-RPC 2.0 viable and follows the JSON-RPC spec as of March 2012. It supports batching, named parameters, and notifications., (*3)

Is Junior available in a PHAR format?

Junior can be downloaded as a PHAR file from the downloads section, or you can make your own PHAR file by running createphar.php from the bin directory., (*4)

How do I use the client?

Include lib/autoload.php load all necessary files. Alternatively, just include junior.phar if taking advantage of the PHAR format. Create a new instance of Junior\Client() and pass it the URI of the server you wish to communicate with. All communication through this instance. See the example folder for more details., (*5)

How do I use the server?

Include lib/autoload.php load all necessary files. Alternatively, just include junior.phar if taking advantage of the PHAR format. Create a new instance of Junior\Server() and pass it an instance of the class you wish to expose for communication. Then call the process() function on your server instance and you are ready to go! See the example folder for more details., (*6)

What if I don't like PHP (or I need to talk to Ruby)?

Try out Jimson, written by Chris Kite for Ruby. It was made at the same time as Junior, and supports all the same features., (*7)

What do I need to run Junior?

  • PHP >= 5.3

Does it have tests?

Yes and as of February 2012 Junior has a robust, working test suite! The tests were written using Spray to stub stream wrappers and PHPUnit version 3.6.10. UPDATE: Junior is hooked into Travis CI as of March 2012., (*8)

The Versions

20/08 2014

dev-version2

dev-version2

JSONRPC 2.0 Client and Server

  Sources   Download

MIT

The Development Requires

by Chris Kite
by Josh Butts
by Scott Reis

20/08 2014

dev-next

dev-next

JSONRPC 2.0 Client and Server

  Sources   Download

MIT

The Development Requires

by Chris Kite
by Josh Butts
by Scott Reis

13/09 2013

dev-master

9999999-dev

JSONRPC 2.0 Client and Server

  Sources   Download

MIT

The Development Requires

by Chris Kite
by Josh Butts
by Scott Reis

13/09 2013

v1.1.3

1.1.3.0

JSONRPC 2.0 Client and Server

  Sources   Download

MIT

The Development Requires

by Chris Kite
by Josh Butts
by Scott Reis

09/04 2013

v1.1.2

1.1.2.0

JSONRPC 2.0 Client and Server

  Sources   Download

MIT

The Development Requires

by Chris Kite
by Josh Butts
by Scott Reis

09/04 2013

v1.1.1

1.1.1.0

JSONRPC 2.0 Client and Server

  Sources   Download

MIT

The Development Requires

by Chris Kite
by Josh Butts