r-green / jsonrpc-client
JSON RPC Client for PHP 5.4+
1.4
2016-10-05 05:38 UTC
Requires
- php: >=5.4.0
This package is not auto-updated.
Last update: 2024-04-13 17:16:38 UTC
README
Straight forward JSON RPC 2.0 Client for PHP without the bloat.
See JSON-RPC spec for more info: http://www.jsonrpc.org/specification
Composer
composer require r-green/jsonrpc-client
Usage
use JsonRpc\Client;
$params = [
...
];
$client = new Client('http://www.example.com');
$client->request(123456, 'myMethod', $params); // ID, Method, Params
$result = $client->send();