yoanm/jsonrpc-server-sdk
A framework-agnostic PHP SDK for building JSON-RPC 2.0 servers: define methods, dispatch requests and notifications to handlers, and return spec-compliant responses, with middleware and flexible configuration for integrating the protocol into your app.
Adopt when:
Look elsewhere when:
sajya/server (larger community, first-party Laravel ergonomics) or a hand-rolled controller you fully own.To executives: This is a small MIT-licensed library that handles the JSON-RPC plumbing if we decide to expose operations over that protocol. Cost is near zero, license risk is nil, and it doesn't lock us into a stack. The caveat is community validation — very low adoption and a single maintainer — so I'd recommend it for an internal or partner-facing integration with a bounded method set, not for a strategic public API. Budget a small contingency for vendoring it.
To engineering: It's a thin, transport-agnostic request-string-to-response-string layer. We wire it into one controller, register method handlers that delegate to existing services, and keep the domain code untouched. That containment is the main selling point: if we outgrow it or swap to sajya/server, the blast radius is a single adapter plus its tests. Recommend a one-day spike to validate error and batch behavior before committing.
Recommendation: Conditional adopt — spike it, keep it behind an interface, and revisit if the integration becomes customer-facing or the maintainer goes quiet.
How can I help you explore Laravel packages today?