yoanm/symfony-jsonrpc-params-validator

Symfony bundle for easy JSON-RPC params validation

v2.1.0 2023-04-02 18:18 UTC

This package is auto-updated.

Last update: 2024-10-31 00:21:49 UTC


README

License Code size Dependabot Status

Scrutinizer Build Status Scrutinizer Code Quality Codacy Badge

CI codecov Symfony Versions

Latest Stable Version Packagist PHP version

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 by v1.0.0 ! ⚠️⚠️

    ⚠️⚠️ v0.3.0 was badly taggued, used v2.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 :

Register JSON-RPC methods as described on yoanm/symfony-jsonrpc-http-server documentation.

Contributing

See contributing note