Download the PHP package digitalrevolution/symfony-console-validation without Composer
On this page you can find all versions of the php package digitalrevolution/symfony-console-validation. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download digitalrevolution/symfony-console-validation
More information about digitalrevolution/symfony-console-validation
Files in digitalrevolution/symfony-console-validation
Package symfony-console-validation
Short Description Symfony command input argument and option validation
License MIT
Informations about the package symfony-console-validation
Symfony Console Validation
An input validation component for Symfony Console. Ease the validation of input arguments and options.
Installation
Include the library as dependency in your own project via:
Usage
1) Create your own ExampleInput
class which extends the AbstractValidatedInput
class.
2) Configure your own ValidationRules
. See the Validation shorthand library for
more information about the rules.
3) Ensure the InputValidator
class is registered as service in your Symfony project.
All that remains is using your ExampleInput
class in your Command
to validate the input.
Manual invalid input handling
The validate
method will by default throw a ViolationException
. To handle the violations yourself:
About us
At 123inkt (Part of Digital Revolution B.V.), every day more than 50 development professionals are working on improving our internal ERP and our several shops. Do you want to join us? We are looking for developers.
All versions of symfony-console-validation with dependencies
digitalrevolution/symfony-validation-shorthand Version ^1.0.4
symfony/console Version ^6.2 || ^7.0
symfony/validator Version ^6.2 || ^7.0