Download the PHP package yoanm/jsonrpc-params-symfony-validator-sdk without Composer
On this page you can find all versions of the php package yoanm/jsonrpc-params-symfony-validator-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download yoanm/jsonrpc-params-symfony-validator-sdk
More information about yoanm/jsonrpc-params-symfony-validator-sdk
Files in yoanm/jsonrpc-params-symfony-validator-sdk
Package jsonrpc-params-symfony-validator-sdk
Short Description Simple JSON-RPC params validator that use Symfony validator component
License MIT
Informations about the package jsonrpc-params-symfony-validator-sdk
JSON-RPC params symfony validator
Simple JSON-RPC params validator that use Symfony validator component
See yoanm/symfony-jsonrpc-params-validator for automatic dependency injection.
See yoanm/jsonrpc-params-symfony-constraint-doc-sdk for documentation generation.
Versions
-
Symfony v3/4 - PHP >=7.1 :
^v1.0 -
Symfony v4/5 - PHP >=7.2 :
^v2.0⚠️⚠️
v0.2.0is replaced byv1.0.0! ⚠️⚠️⚠️⚠️
v0.3.0was badly taggued, usedv2.0.0instead ! ⚠️⚠️ - Symfony v4.4/5.4/6.0 - PHP ^8.0 :
^v2.1 - Symfony v5.4/6.4/7.0 - PHP ^8.0 :
^v3.0
How to use
In order to be validated, a JSON-RPC method must :
- Implements
JsonRpcMethodInterfacefromyoanm/jsonrpc-server-sdk - Implements
MethodWithValidatedParamsInterface
With yoanm/jsonrpc-server-sdk
Create the validator and inject it into request handler :
Then you can send JSON-RPC request string to the server and any method wich implements MethodWithValidatedParamsInterface will be validated.
Standalone
Params validation example
Violations format
Each violations will have the following format :
Contributing
See contributing note
All versions of jsonrpc-params-symfony-validator-sdk with dependencies
symfony/validator Version ^5.4 || ^6.4 || ^7.0
yoanm/jsonrpc-server-sdk Version ^3.0