Convert Symfony XML/YAML configs to PHP
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
Install
composer require symplify/config-transformer --dev
Usage
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 config/parameters.yml
The input files are deleted automatically.