Download the PHP package revenkroz/validating-param-converter without Composer
On this page you can find all versions of the php package revenkroz/validating-param-converter. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download revenkroz/validating-param-converter
More information about revenkroz/validating-param-converter
Files in revenkroz/validating-param-converter
Download revenkroz/validating-param-converter
More information about revenkroz/validating-param-converter
Files in revenkroz/validating-param-converter
Vendor revenkroz
Package validating-param-converter
Short Description Param Converter with request validation
License MIT
Homepage https://github.com/revenkroz/validating-param-converter
Package validating-param-converter
Short Description Param Converter with request validation
License MIT
Homepage https://github.com/revenkroz/validating-param-converter
Please rate this library. Is it a good library?
Informations about the package validating-param-converter
Symfony ParamConverter with request validation
The idea is to validate a raw payload and then map the request to object. It just adds the validation step between decoding and denormalization.
Installation
Add service to your services.yaml
:
Usage
Create a DTO that implements ValidatableParamInterface
:
Get your DTO in controller method:
To validate a query using your validation groups, use the CustomGroupsValidatableParamInterface
interface instead:
All versions of validating-param-converter with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.0
sensio/framework-extra-bundle Version ^6
symfony/http-kernel Version ^5.3|^6.0
symfony/serializer Version ^5.3|^6.0
symfony/property-access Version ^5.3|^6.0
symfony/validator Version ^5.3|^6.0
sensio/framework-extra-bundle Version ^6
symfony/http-kernel Version ^5.3|^6.0
symfony/serializer Version ^5.3|^6.0
symfony/property-access Version ^5.3|^6.0
symfony/validator Version ^5.3|^6.0
The package revenkroz/validating-param-converter contains the following files
Loading the files please wait ....