Download the PHP package flamestorm/jsonrpc without Composer
On this page you can find all versions of the php package flamestorm/jsonrpc. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download flamestorm/jsonrpc
More information about flamestorm/jsonrpc
Files in flamestorm/jsonrpc
Package jsonrpc
Short Description JSON-RPC 2.0 client/server implementation
License MIT
Homepage http://github.com/johnstevenson/jsonrpc
Informations about the package jsonrpc
Json-Rpc
A PHP implementation for JSON-RPC (v2). Contains client and server libraries to handle requests including notification and batch.
Contents
- About
- Installation
- Usage
- Example
- License
About
JSON-RPC is a protocol that allows servers to talk to each other using json-encoded structures. It is described in its specification as:
A light weight remote procedure call protocol. It is designed to be simple!
Full details at jsonrpc.org. You may need to read this to get an overview of the json structures that are used, although the heavy lifting is abstracted away by this implementation. For example, calling a method on a remote server is as simple as:
And at the server end:
Installation
The easiest way is through composer. Just create a composer.json
file and run php composer.phar install
to install it:
Alternatively, you can download and extract it, or clone this repo. If you just want to try it, see Example.
Usage
If you downloaded the library through composer then you must add the following somewhere in your bootstrap code:
Otherwise you must point a PSR-0 autoloader to the src
directory. Full usage documentation can be found in the Wiki:
Example
The quickest way to get the library up and running locally is to point your browser to example/client.php
and everything will load automatically. You can then experiment with the code as you read the documentation.
License
Json-Rpc is licensed under the MIT License - see the LICENSE
file for details