symplify/config-transformer
Automates refactoring and normalization of configuration files, helping you transform legacy or inconsistent configs into a unified format. Supports common PHP config styles and streamlines upgrades by applying consistent, repeatable changes across large codebases.
Why to PHP? It's the best format for PHP Symfony applications:
composer require symplify/config-transformer --dev
By default, the command uses /config directory to transform all files in it.
At first, run it with --dry-run to see what files would be transformed:
vendor/bin/config-transformer --dry-run
Do you want to convert single file or directory at a time? Specify the paths as arguments:
vendor/bin/config-transformer config/parameters.yml --dry-run
Are you ready to go? Remove --dry-run:
vendor/bin/config-transformer
The input files are deleted automatically.
It's typical to upgrade first services and then routes as follow up PR. To do that, use --skip-routes option:
vendor/bin/config-transformer --skip-routes
How can I help you explore Laravel packages today?