yoanm/jsonrpc-params-symfony-constraint-doc-sdk
A PHP SDK that generates documentation for JSON-RPC parameter definitions from Symfony validation constraints, helping keep API reference docs aligned with validation rules and easier for consumers to understand.
yoanm JSON-RPC ecosystem; it is a composable piece, not a standalone platform decision.Consider it when all of the following hold:
yoanm/php-jsonrpc-server) and need published, machine-readable parameter documentation.illuminate/validation rules.Look elsewhere when:
illuminate/validation, FormRequests, rule arrays) does not expose Symfony constraint metadata. Bridging to symfony/validator + attributes on DTOs is an architectural change with real cost — likely larger than the documentation benefit.dedoc/scramble, knuckleswtf/scribe, or nelmio/api-doc-bundle; this package's output targets JSON-RPC docs, not OpenAPI.To executives: This is a small, MIT-licensed utility that removes manual effort from API documentation and keeps our published API contract honest. It eliminates a class of integration bugs and support tickets at effectively zero license cost, and the implementation effort is low. The caveat is maturity: it has no meaningful user base, so we treat it as internal code we control — audit it, pin it, fork if needed. Recommendation: adopt as a scoped pilot behind the JSON-RPC surface, not as a platform-wide standard.
To engineering: It converts Symfony Validator constraints into JSON-RPC parameter documentation, so validation rules become the documentation source of truth. Scope is narrow and readable; the risk is maintenance, not complexity. Prerequisites: a real Symfony Validator layer on request DTOs, JSON-RPC as the transport, and CI generation so drift is caught at build time. If we're on Laravel validation arrays or REST/OpenAPI, the integration cost outweighs the benefit — we should decline and use the OpenAPI tooling instead.
How can I help you explore Laravel packages today?