gromnan/symfony-config-xml-to-php

Convert Symfony config files from XML to PHP

Installs: 16

Dependents: 0

Suggesters: 0

Security: 0

Stars: 14

Watchers: 3

Forks: 3

Open Issues: 1

pkg:composer/gromnan/symfony-config-xml-to-php

0.1.1 2025-10-17 12:06 UTC

This package is auto-updated.

Last update: 2025-11-01 10:19:24 UTC


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.

Usage

Install:

composer require --dev gromnan/symfony-config-xml-to-php

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.