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
- Host: GitHub
- URL: https://github.com/lucasnetau/php-json-rpc
- Owner: lucasnetau
- License: mit
- Created: 2019-02-20T04:53:03.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2025-03-22T01:11:17.000Z (about 1 month ago)
- Last Synced: 2025-03-27T02:19:04.914Z (about 1 month ago)
- Topics: jsonrpc, jsonrpc-client, jsonrpc-server
- Language: PHP
- Homepage:
- Size: 18.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```