yoanm / symfony-jsonrpc-params-validator
Symfony bundle for easy JSON-RPC params validation
Installs: 107 763
Dependents: 0
Suggesters: 3
Security: 0
Stars: 1
Watchers: 3
Forks: 2
Open Issues: 3
Requires
- php: ^8.0
- symfony/config: ^4.4 || ^5.4 || ^6.0
- symfony/dependency-injection: ^4.4 || ^5.4 || ^6.0
- symfony/http-kernel: ^4.4 || ^5.4 || ^6.0
- yoanm/jsonrpc-params-symfony-validator-sdk: ^2.0
Requires (Dev)
- ext-json: *
- behat/behat: ^3.9.0
- dvdoug/behat-code-coverage: ^5.0
- matthiasnoback/symfony-config-test: ^4.0
- matthiasnoback/symfony-dependency-injection-test: ^4.0
- phpspec/prophecy: ^1.15
- phpspec/prophecy-phpunit: ^2.0
- phpunit/php-code-coverage: ^9.2.4
- phpunit/phpunit: ^9.0
- squizlabs/php_codesniffer: ^3.5
- symfony/framework-bundle: ^4.4 || ^5.4 || ^6.0
- symfony/http-foundation: ^4.4 || ^5.4 || ^6.0
- symfony/routing: ^4.4 || ^5.4 || ^6.0
- yoanm/jsonrpc-server-sdk: ^3.0
- yoanm/php-unit-extended: ^2.0.2
- yoanm/symfony-jsonrpc-http-server: ^3.0
Suggests
- yoanm/symfony-jsonrpc-http-server: Symfony Bundle to convert an HTTP json-rpc request into HTTP json-rpc response
- yoanm/symfony-jsonrpc-params-sf-constraints-doc: To generate payload documentation from validation constraints
This package is auto-updated.
Last update: 2024-12-01 00:13:32 UTC
README
Easy JSON-RPC params validation for yoanm/symfony-jsonrpc-http-server
Symfony bundle for yoanm/jsonrpc-params-symfony-validator-sdk
See yoanm/symfony-jsonrpc-params-sf-constraints-doc for documentation generation.
Versions
-
Symfony v3/4 - PHP >=7.1 :
^v1.0
-
Symfony v4/5 - PHP >=7.2 :
^v2.0
⚠️⚠️
v0.2.0
is replaced byv1.0.0
! ⚠️⚠️⚠️⚠️
v0.3.0
was badly taggued, usedv2.0.0
instead ! ⚠️⚠️ -
Symfony v4.4/5.4/6.x - PHP ^8.0 :
^v2.1
How to use
Once configured, simply send JSON-RPC request to the server and validator will automatically validate params.
See below how to configure it.
Configuration
Bundle requires only one thing :
- JSON-RPC Methods which are compatible with
Register JSON-RPC methods as described on yoanm/symfony-jsonrpc-http-server
documentation.