symplify/config-transformer

Prefixed version of Symfony YAML/XML to PHP/YAML config converter

v9.3.26 2021-06-12 13:23 UTC

README

Downloads total

Convert Symfony Config Formats From XML/YAML to PHP.

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

Install

composer require symplify/config-transformer --dev

Usage

Provide paths to files/dirs you want to convert:

vendor/bin/config-transformer switch-format config/packages/ecs.yaml app/config

The input file will be deleted automatically.

Configuration

With --target-symfony-version/-s option you specify, what Symfony features should be used (3.2 is used by default).

vendor/bin/config-transformer switch-format app/config -s 3.3

Note: Symfony YAML parser removes all comments, so be sure to go through files and add still-relevant comments manually.


Report Issues

In case you are experiencing a bug or want to request a new feature head over to the Symplify monorepo issue tracker

Contribute

The sources of this package are contained in the Symplify monorepo. We welcome contributions for this package on symplify/symplify.