migrify / config-transformer
This package is abandoned and no longer maintained.
The author suggests using the symplify/config-transformer package instead.
Convert Symfony YAML configs to PHP
12.5.1
2026-06-10 22:19 UTC
Requires
- php: >=8.2
- ext-ctype: *
- nette/utils: ^4.0
- nikic/php-parser: ^5.5
- symfony/config: ^6.4
- symfony/console: ^6.4
- symfony/dependency-injection: 6.1.*
- symfony/expression-language: ^6.4
- symfony/filesystem: ^6.4
- symfony/finder: ^6.4
- symfony/service-contracts: ^3.6
- symfony/yaml: ^6.4
- webmozart/assert: ^1.11
Requires (Dev)
- myclabs/php-enum: ^1.8
- phpecs/phpecs: ^2.0
- phpstan/extension-installer: ^1.4
- phpstan/phpstan: ^2.1
- phpstan/phpstan-deprecation-rules: ^2.0
- phpunit/phpunit: ^11.5
- rector/rector: ^2.1.1
- shipmonk/composer-dependency-analyser: ^1.8
- symfony/http-kernel: 6.1.*
- symplify/phpstan-extensions: ^12.0
- symplify/vendor-patches: ^11.3
- tomasvotruba/class-leak: ^2.0
- tomasvotruba/unused-public: ^2.0
This package is auto-updated.
Last update: 2026-06-10 22:57:36 UTC
README
Why to PHP? It's the best format for PHP Symfony applications:
- Modernize Symfony Configs
- 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.
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