symplify/config-transformer
最新稳定版本:12.4.3
Composer 安装命令:
composer require symplify/config-transformer
包简介
Convert Symfony YAML configs to PHP
README 文档
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
统计信息
- 总下载量: 1.91M
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 259
- 点击次数: 1
- 依赖项目数: 22
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-01-04