bednic / json-rpc
JSON RPC 2.0 implementation
3.3.0
2023-04-20 15:55 UTC
Requires
- php: ^8.0
- ext-json: *
Requires (Dev)
- doctrine/instantiator: 1.5.*
- opis/json-schema: ^1.0
- phpunit/phpunit: ^9.0
- squizlabs/php_codesniffer: ^3.0
README
JSON RPC Docs
Usage
- Create controller implementing ProcedureController
- Pass the controller to dispatcher
- Handle json request data with
Dispatcher::dispatch(string $data)
- Fetch results by calling
Dispatcher::result()
Optionally you can use JSONRPCMiddleware
to check right media type
Example
See tests in this repo.