bednic/json-rpc

JSON RPC 2.0 implementation

3.3.0 2023-04-20 15:55 UTC

This package is auto-updated.

Last update: 2024-03-20 17:58:49 UTC


README

JSON RPC Docs

JSON-RPC

Usage

  1. Create controller implementing ProcedureController
  2. Pass the controller to dispatcher
  3. Handle json request data with Dispatcher::dispatch(string $data)
  4. Fetch results by calling Dispatcher::result()

Optionally you can use JSONRPCMiddleware to check right media type

Example

See tests in this repo.