Download the PHP package youniverse-center/request-validation-bundle without Composer
On this page you can find all versions of the php package youniverse-center/request-validation-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download youniverse-center/request-validation-bundle
More information about youniverse-center/request-validation-bundle
Files in youniverse-center/request-validation-bundle
Download youniverse-center/request-validation-bundle
More information about youniverse-center/request-validation-bundle
Files in youniverse-center/request-validation-bundle
Vendor youniverse-center
Package request-validation-bundle
Short Description Symfony Bundle for automatic validation of data provided in the request.
License MIT
Package request-validation-bundle
Short Description Symfony Bundle for automatic validation of data provided in the request.
License MIT
Please rate this library. Is it a good library?
Informations about the package request-validation-bundle
request-validation-bundle
-
Add validator class implementing
Yc\RequestValidationBundle\RequestValidator\RequestValidatorInterface
- in the
getConstriant
return constraints used by the validator component - in the
getGroups
return validation groups getInvalidRequestResponse
must return response that will be used if the validation has failed.
- in the
- Add attribute
Yc\RequestValidationBundle\Attributes\RequestValidator
to your controller
(This attribute can be also placed on a method if you have multple controllers in a class.)
- You probably want to receive data from the request for the validation in your specific way. For this purpose implement
Yc\RequestValidationBundle\DataReceiver\DataReceiverInterface
for example:
- By default the data will be set in the request attribute
data
if you want to change this, implementYc\RequestValidationBundle\DataTransformer\DataTransformerInterface
for example:
and then you can use it in controller like:
All versions of request-validation-bundle with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.0
symfony/event-dispatcher Version ^5.3
symfony/dependency-injection Version ^5.3
symfony/validator Version ^5.3
symfony/http-kernel Version ^5.3
symfony/config Version ^5.3
symfony/event-dispatcher Version ^5.3
symfony/dependency-injection Version ^5.3
symfony/validator Version ^5.3
symfony/http-kernel Version ^5.3
symfony/config Version ^5.3
The package youniverse-center/request-validation-bundle contains the following files
Loading the files please wait ....