Skip to content

Latest commit

 

History

History
59 lines (36 loc) · 1.5 KB

README.md

File metadata and controls

59 lines (36 loc) · 1.5 KB

Convert Symfony YAML configs to PHP

Downloads total


Why to PHP? It's the best format for PHP Symfony applications:


Install

composer require symplify/config-transformer --dev

Usage

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.


Skip Routes at First

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