Download the PHP package scaytrase/json-rpc-client without Composer
On this page you can find all versions of the php package scaytrase/json-rpc-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download scaytrase/json-rpc-client
More information about scaytrase/json-rpc-client
Files in scaytrase/json-rpc-client
Package json-rpc-client
Short Description JSON-RPC 2.0 Client implementation
License MIT
Informations about the package json-rpc-client
JSON-RPC 2.0 Client implementation
Extension of scaytrase/rpc-common
- JSON RPC Interfaces
- JSON RPC client
- Async with Guzzle
- Automatic batch with multiple requests or
LazyClientDecorator
Usage
- Configure a Guzzle client.
-
Instantiate the client:
- Optionally pass the ID generator as third argument and the PSR-3 logger as the fourth argument
Simple UUID generator and PSR-3 NullLogger
are used by default. ID is generated for RpcRequestInterface
instances.
If request is instance of JsonRpcRequestInterface
and does not contain an ID assigned, the request is traited as
notification request and will not receive the response from server.
- Create a
RpcRequestInterface
instance
With JsonRpcRequest
class:
With JsonRpcNotification
class:
With custom RpcRequestInterface
implementation:
- Call the client
The collection object contains the mapping between the requests and the responses
Decorating
Refer scaytrase/rpc-common
base library for some
useful decorators:
CacheableRpcClient
LazyRpcClient
LoggableRpcClient
ProfiledClient
TraceableClient
All versions of json-rpc-client with dependencies
scaytrase/rpc-common Version ~1.0
psr/log Version ~1.0
guzzlehttp/guzzle Version ~6.0
paragonie/random_compat Version ^1|^2