Why to PHP? It's the best format for PHP Symfony applications:
- 10 Cool Features You Get after switching from YAML to PHP Configs
- How to Switch from YAML/XML Configs to PHP Today with Symplify
composer require symplify/config-transformer --dev
By default, the command uses /config
directory to transform all files in it:
vendor/bin/config-transformer
Do you want to convert 1 files or directory at a time? Specify the paths as arguments:
vendor/bin/config-transformer convert config/parameters.yml
The input files are deleted automatically.