yoanm/jsonrpc-http-server-openapi-doc-sdk
SDK for generating OpenAPI documentation from JSON-RPC HTTP server definitions in the yoanm/jsonrpc ecosystem, helping PHP developers expose consistent, discoverable API specs for their JSON-RPC services.
yoanm/php-jsonrpc-http-server family. Adopting it is really a decision to standardize on that JSON-RPC server stack, so it belongs in the same architecture review.Adopt-consider criteria:
yoanm/php-jsonrpc-http-server with structured method definitions. The generator has no value outside that ecosystem; it is not a generic "scan my Laravel routes" tool.SpecGenerator contract plus a Laravel artisan command), and be prepared to vendor or fork. The package's surface is small and its output is a file, so blast radius is low.Look elsewhere when:
dedoc/scramble, darkaonline/l5-swagger, or Scribe instead — they understand Laravel routing and are far better supported.oneOf/discriminator fidelity, or 3.1 features.Blunt read on the numbers: stars 1, dependents 0, score 0.305. That is not a red flag about quality so much as an absence of evidence. Treat it as an evaluation candidate for a spike, not a platform standard, until we've used it on one real service.
For executives (30 seconds): We can publish a machine-readable API contract for our JSON-RPC endpoints automatically, for zero license cost (MIT), by wiring a small adapter into our build. That unlocks partner onboarding, generated client SDKs, API gateway config, and AI tool definitions — things we currently can't offer without hand-writing specs we'd struggle to keep accurate. The risk is that it's a very small open-source project maintained by one person; we contain that by pinning the version, isolating it behind our own interface, and limiting it to one service initially. Cost to try: roughly 1–2 engineering days.
For engineering: This is a spec emitter, not a framework. It consumes yoanm/php-jsonrpc-http-server method definitions and outputs an OpenAPI 3.0.0 document. Integration surface is one artisan command plus a CI drift check — no runtime request-path involvement, no performance implications, no changes to how methods execute. Because it's a build-time tool, we can wrap it in an interface, pin the version, and swap or vendor it if maintenance lapses. It also has a nice side effect: it makes untyped params and undocumented error codes show up as gaps in the generated spec, which we can use as a lightweight API design checklist in review.
Recommendation: Run a one-sprint spike on a single internal service that already uses the yoanm stack. Success criteria: spec generates in CI, covers all methods, and is consumable by one downstream tool (docs portal, Postman, or SDK generator). If the spike lands, promote it to a standard for JSON-RPC services. If we don't standardize on the yoanm JSON-RPC server stack, don't adopt this — the dependency only pays off inside that ecosystem.
How can I help you explore Laravel packages today?