yoanm/symfony-jsonrpc-params-sf-constraints-doc
Symfony JSON-RPC params with Symfony constraint documentation: declare validation rules on JSON-RPC parameters and generate clear, constraint-aware docs so your API contract stays consistent, discoverable, and easy to maintain for Symfony applications.
This is a Symfony bundle, not a Laravel package — the v2.0.2 release makes that explicit by changing the Composer type from library to symfony-bundle. Before you invest time, confirm which side of your stack you actually need:
Assert\NotBlank, Assert\Type, Assert\Length, etc.) attached to your JSON-RPC param classes. It is a documentation layer on top of symfony/validator + the yoanm/symfony-jsonrpc-* family, not a standalone validator.composer require yoanm/symfony-jsonrpc-params-sf-constraints-doc. Inspect composer.json first (post-v2.0.2 it declares type: symfony-bundle) and the require block to see which yoanm/symfony-jsonrpc-* and symfony/* versions you're being pulled onto.config/bundles.php (or rely on Flex if you have a recipe). Look in src/ for the *Bundle class and its DependencyInjection/ extension — that extension is where the config key and service wiring live, and it's the fastest way to learn the real option names rather than trusting the README.Laravel reality check: there is no service provider and no package discovery here. In a Laravel app you can require symfony/validator and use constraints directly, but this bundle's DI wiring won't boot outside a Symfony kernel. If you're Laravel-first, either (a) run the doc generation in a small Symfony CLI/service and consume the JSON output, or (b) skip the bundle and read constraint metadata yourself via symfony/validator's ClassMetadataFactory.
bin/console cache:clear (and cache:warmup in deploy pipelines), or you'll debug a phantom.type: symfony-bundle is metadata, not magic. Existing installs keep working, but Flex/symfony/flex may now treat the package differently (bundle discovery, recipe lookup). If you previously installed it and pinned composer.lock, verify nothing re-resolves unexpectedly.type change. Run composer update --dry-run yoanm/symfony-jsonrpc-params-sf-constraints-doc (or composer why-not) to see whether those majors collide with your symfony/* or yoanm/* pins, and run your doc-generation step in CI before merging.ServiceProvider. php artisan vendor:publish will not find anything useful.Assert\Callback are common blind spots. Test one constraint of each kind you rely on.yoanm_symfony_json_rpc_params_sf_constraints_doc by convention, but confirm in the DI extension). A wrong key is silently ignored unless you run with -vvv.bin/console debug:container <service-fragment>, bin/console debug:config <alias>, and -vvv on the generation command. Container debug tells you whether the bundle's services actually registered — that's the first thing to check when output is empty.services.yaml. Both are safer than forking; forking means re-auditing on every 2.x bump.How can I help you explore Laravel packages today?