gromnan/symfony-config-xml-to-php
最新稳定版本:0.2.1
Composer 安装命令:
composer require gromnan/symfony-config-xml-to-php
包简介
Convert Symfony config files from XML to PHP
README 文档
README
XML configuration format is removed from Symfony 8.0. Bundles must convert their XML config files to PHP.
⚠️ This script is a best-effort tool and does not guarantee a perfect conversion. Manual review and adjustments may be necessary.
Installation
The best way to use this tool is as a standalone project in a separate directory.
mkdir xml-to-php-converter
cd xml-to-php-converter
composer init --type=project --require='gromnan/symfony-config-xml-to-php:*' --no-interaction
composer install
Usage
Run the script for a directory:
vendor/bin/convert ../src/Symfony/Bundle/Resources/config/
Or for a single file:
vendor/bin/convert ../src/Symfony/Bundle/Resources/config/services.xml
Contributing
Feel free to open issues or submit pull requests for improvements or bug fixes.
License
MIT License. See the LICENSE file for details.
统计信息
- 总下载量: 197
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 30
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-10-09