An open API service indexing awesome lists of open source software.

https://github.com/lucasnetau/php-json-rpc

PHP JSON-RPC Helpers
https://github.com/lucasnetau/php-json-rpc

jsonrpc jsonrpc-client jsonrpc-server

Last synced: 13 days ago
JSON representation

PHP JSON-RPC Helpers

Awesome Lists containing this project

README

        

# JSON RPC Helper Libraries for PHP

This library contains classes to construct JSON RPC notification, request, response and error objects.

Additionally there is a ReactPHP stream decoder included which will process JSON RPC request and responses encoded via NDJSON.

https://www.jsonrpc.org/specification

# Quickstart

## Create a Request on the client
```php
setResult('pong');

$packet = json_encode($response);

// Send $packet back to Client

```