PHPackages                             migrify/config-transformer - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. migrify/config-transformer

Abandoned → [symplify/config-transformer](/?search=symplify%2Fconfig-transformer)Library[Parsing &amp; Serialization](/categories/parsing)

migrify/config-transformer
==========================

Convert Symfony YAML configs to PHP

12.4.3(10mo ago)250187.6k14[2 issues](https://github.com/symplify/config-transformer/issues)[1 PRs](https://github.com/symplify/config-transformer/pulls)3MITPHPPHP &gt;=7.2CI passing

Since Jul 10Pushed 7mo ago5 watchersCompare

[ Source](https://github.com/symplify/config-transformer)[ Packagist](https://packagist.org/packages/migrify/config-transformer)[ Fund](https://www.paypal.me/rectorphp)[ GitHub Sponsors](https://github.com/tomasvotruba)[ RSS](/packages/migrify-config-transformer/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (383)Used By (3)

Convert Symfony YAML configs to PHP
===================================

[](#convert-symfony-yaml-configs-to-php)

[![Downloads total](https://camo.githubusercontent.com/ab43c1bbdddeac745331dd90528624a438b945bc0151381beacb51c4dbde2af1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73796d706c6966792f636f6e6669672d7472616e73666f726d65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/symplify/config-transformer/stats)

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

- [Modernize Symfony Configs](https://getrector.com/blog/modernize-symfony-configs)
- [10 Cool Features You Get after switching from YAML to PHP Configs](https://tomasvotruba.com/blog/2020/07/16/10-cool-features-you-get-after-switching-from-yaml-to-php-configs/)
- [How to Switch from YAML/XML Configs to PHP Today with Symplify](https://tomasvotruba.com/blog/2020/07/27/how-to-switch-from-yaml-xml-configs-to-php-today-with-migrify/)

Install
-------

[](#install)

```
composer require symplify/config-transformer --dev
```

Usage
-----

[](#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

[](#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
```

###  Health Score

55

—

FairBetter than 98% of packages

Maintenance59

Moderate activity, may be stable

Popularity50

Moderate usage in the ecosystem

Community27

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 89% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~5 days

Recently: every ~44 days

Total

381

Last Release

306d ago

Major Versions

0.4.2 → 9.0.0-BETA22020-11-24

9.4.70 → 10.0.0-beta12021-11-02

10.3.3 → 11.0.12022-06-13

11.2.3.72 → 12.0.02023-01-31

PHP version history (7 changes)v0.3.2PHP ^7.2

v0.3.32PHP ^7.2|^8.0

0.3.34PHP &gt;=7.2

9.0.0-rc1PHP &gt;=7.3

v9.3.22PHP &gt;=7.1

v9.3.25PHP &gt;=8.0

11.1.25PHP &gt;=8.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/924196?v=4)[Tomas Votruba](/maintainers/TomasVotruba)[@TomasVotruba](https://github.com/TomasVotruba)

---

Top Contributors

[![actions-user](https://avatars.githubusercontent.com/u/65916846?v=4)](https://github.com/actions-user "actions-user (1847 commits)")[![TomasVotruba](https://avatars.githubusercontent.com/u/924196?v=4)](https://github.com/TomasVotruba "TomasVotruba (193 commits)")[![samsonasik](https://avatars.githubusercontent.com/u/459648?v=4)](https://github.com/samsonasik "samsonasik (20 commits)")[![ThomasLandauer](https://avatars.githubusercontent.com/u/1054469?v=4)](https://github.com/ThomasLandauer "ThomasLandauer (3 commits)")[![localheinz](https://avatars.githubusercontent.com/u/605483?v=4)](https://github.com/localheinz "localheinz (3 commits)")[![sad270](https://avatars.githubusercontent.com/u/5607440?v=4)](https://github.com/sad270 "sad270 (2 commits)")[![dannyvankooten](https://avatars.githubusercontent.com/u/885856?v=4)](https://github.com/dannyvankooten "dannyvankooten (2 commits)")[![GromNaN](https://avatars.githubusercontent.com/u/400034?v=4)](https://github.com/GromNaN "GromNaN (2 commits)")[![b1rdex](https://avatars.githubusercontent.com/u/312855?v=4)](https://github.com/b1rdex "b1rdex (1 commits)")[![leoloso](https://avatars.githubusercontent.com/u/1981996?v=4)](https://github.com/leoloso "leoloso (1 commits)")[![PhilETaylor](https://avatars.githubusercontent.com/u/400092?v=4)](https://github.com/PhilETaylor "PhilETaylor (1 commits)")[![COil](https://avatars.githubusercontent.com/u/177844?v=4)](https://github.com/COil "COil (1 commits)")

---

Tags

converterphpsymfonyxmlyaml

### Embed Badge

![Health badge](/badges/migrify-config-transformer/health.svg)

```
[![Health](https://phpackages.com/badges/migrify-config-transformer/health.svg)](https://phpackages.com/packages/migrify-config-transformer)
```

###  Alternatives

[mtdowling/jmespath.php

Declaratively specify how to extract elements from a JSON document

2.0k472.8M135](/packages/mtdowling-jmespathphp)[opis/closure

A library that can be used to serialize closures (anonymous functions) and arbitrary data.

2.6k230.0M284](/packages/opis-closure)[masterminds/html5

An HTML5 parser and serializer.

1.8k242.8M229](/packages/masterminds-html5)[sabberworm/php-css-parser

Parser for CSS Files written in PHP

1.8k191.2M65](/packages/sabberworm-php-css-parser)[michelf/php-markdown

PHP Markdown

3.5k52.4M345](/packages/michelf-php-markdown)[jms/metadata

Class/method/property metadata management in PHP

1.8k152.8M88](/packages/jms-metadata)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
