PHPackages                             symplify/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. symplify/config-transformer

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

symplify/config-transformer
===========================

Convert Symfony YAML configs to PHP

12.4.3(10mo ago)2632.2M↑24.9%14[4 issues](https://github.com/symplify/config-transformer/issues)[1 PRs](https://github.com/symplify/config-transformer/pulls)17MITPHPPHP &gt;=7.2CI passing

Since Jul 10Pushed 7mo ago5 watchersCompare

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

READMEChangelogDependenciesVersions (383)Used By (17)

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

58

—

FairBetter than 98% of packages

Maintenance59

Moderate activity, may be stable

Popularity59

Moderate usage in the ecosystem

Community33

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

307d 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/symplify-config-transformer/health.svg)

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

###  Alternatives

[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)[jms/metadata

Class/method/property metadata management in PHP

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

Allows you to easily serialize, and deserialize data of any complexity

1.8k89.3M627](/packages/jms-serializer-bundle)[hassankhan/config

Lightweight configuration file loader that supports PHP, INI, XML, JSON, and YAML files

97513.5M170](/packages/hassankhan-config)[meyfa/php-svg

Read, edit, write, and render SVG files with PHP

54613.9M42](/packages/meyfa-php-svg)

PHPackages © 2026

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