Examples
Basic example
A minimal server with handlers and no auth. See examples/basic/.
Auth example
JWT auth with a working example app. See examples/auth/.
Advanced example
Custom handler factory, middleware, schema validation. See examples/advanced/.
Browser demo
A tiny HTML page for sending raw JSON-RPC requests. See examples/browser-demo/.
Usage patterns
Direct core usage (no HTTP)
$json = $server->handleJson(
'{"jsonrpc":"2.0","method":"system.health","id":1}',
$context,
);
Custom rate limiter backend
$server->getEngine()->getRateLimitManager()->setLimiter(new MyRedisRateLimiter());
Response fingerprinting
'response_fingerprint' => ['enabled' => true, 'algorithm' => 'sha256'],