migrify/config-transformer

This package is abandoned and no longer maintained. The author suggests using the symplify/config-transformer package instead.

Convert Symfony YAML/XML format to PHP/YAML

12.4.0 2025-01-22 23:08 UTC

This package is auto-updated.

Last update: 2025-01-22 23:13:37 UTC


README

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