Download the PHP package delolmo/valinor-console without Composer
On this page you can find all versions of the php package delolmo/valinor-console. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download delolmo/valinor-console
More information about delolmo/valinor-console
Files in delolmo/valinor-console
Download delolmo/valinor-console
More information about delolmo/valinor-console
Files in delolmo/valinor-console
Vendor delolmo
Package valinor-console
Short Description Use symfony/console as a Valinor source
License
Package valinor-console
Short Description Use symfony/console as a Valinor source
License
Please rate this library. Is it a good library?
Informations about the package valinor-console
The following library allows using InputInterface
objects of the symfony/console component as a source for the cuyz/valinor library.
Installation
Example
Final notes
- Versioning of
delolmo/valinor-console
will always matchcuyz/valinor
versions. Same goes for PHP versions. - When creating the Mapper object, it should always be taken into account that, by default, Symfony adds several options to the InputInterface object (i.e., help or verbosity levels). If
allowSuperfluousKeys
is not used, the mapping process will throw an exception - unless you consider these parameters in the object you are trying to map (App\DTO\CustomObject
in the above example). See Allow superflous keys for more information. - Although options and arguments cannot share the same name within the same Symfony command, it should be noted that, from an InputSource standpoint, arguments always take precedence over options. That is, if there is an argument and an option sharing the same name, InputSource will only use the argument's value for mapping purposes.
- Considering that Symfony command applications convert most of the fields to either strings or arrays, it is interesting to note that
enableFlexibleCasting
should also be configured in the Mapper. See Enabling flexible casting for more information.
All versions of valinor-console with dependencies
PHP Build Version
Package Version
Requires
php Version
~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0
cuyz/valinor Version ^1.2
symfony/console Version ^6.2 || ^7.0
cuyz/valinor Version ^1.2
symfony/console Version ^6.2 || ^7.0
The package delolmo/valinor-console contains the following files
Loading the files please wait ....