- Is gheb/configuration-converter-bundle a Laravel package?
- No. It is a Symfony bundle that ships a Bundle class and wires into Symfony's dependency injection container and console, while Laravel uses service providers, Artisan and its own container. Nothing in it will just work inside a Laravel application without Symfony bundle machinery.
- Can I install gheb/configuration-converter-bundle with Composer in a Laravel app?
- You technically can, but you should not add it to your Laravel application's dependency tree. It would pull in Symfony bundle components and likely conflict with the PHP and Symfony version constraints of a modern Laravel stack, with no runtime benefit. Run it once in a disposable Symfony project and copy the generated configuration into Laravel instead.
- Which configuration formats does this bundle convert between?
- It is designed to convert configuration files between formats such as YAML, XML and PHP, primarily in the context of API Platform configuration. The exact supported format pairs and conversion directions are not fully documented, so verify them against your source and target formats before relying on it. It is a developer-time converter, not a runtime serialization library.
- Does gheb/configuration-converter-bundle support API Platform 3.x?
- That is uncertain and should be treated as a risk. API Platform's metadata model changed substantially between 2.x and 3.x, especially the resource and operation rework, so converted output may not match the schema a 3.x application expects. Validate any generated configuration against your actual target API Platform version, not the version the bundle was built for.
- Is gheb/configuration-converter-bundle still maintained?
- No. The repository is archived, has around 17 stars and zero dependents, which means no maintenance, no security patching and no downstream signal that anyone relies on its correctness. If you adopt it, treat it as disposable or budget for a local fork with pinned dependencies, because any defect becomes your problem.
- How do I use it to convert Symfony YAML config to PHP for a Laravel project?
- Stand up a throwaway Symfony project pinned to the PHP and Symfony versions the bundle supports, install the bundle there, and run the conversion against a copy of your source configuration. Review and hand-correct the generated PHP, then import the artifacts into your Laravel codebase and validate them. Discard the scratch project afterwards and do not commit the bundle to your dependency tree.
- Which PHP and Symfony versions does this bundle require?
- The exact constraints are not documented in the package overview, and the repository is archived, so they are almost certainly pinned to older majors. Check the composer.json constraints before spending any time on it and expect to pin an older toolchain inside a scratch project only. Attempting to resolve it against a current Laravel stack is likely to produce dependency conflicts.
- Does the converter preserve all configuration directives like operations, serialization groups, validation and filters?
- This is not guaranteed and is the main correctness risk. Converters of this kind can silently drop keys they do not understand, particularly richer API Platform directives such as operations, serialization groups, validation and filters. Always diff the source and generated output and hand-correct anything missing before using it.
- Can I use gheb/configuration-converter-bundle at runtime in production?
- No. It is a one-off, developer-time utility for migrating or standardizing configuration formats, not a runtime dependency. There are no scaling, throughput or latency concerns because it should never run as part of your application, and there is no upstream support if something goes wrong.
- What are the alternatives if I need to convert configuration formats in Laravel?
- First establish whether conversion is genuinely required, because configuration format is often a preference rather than a constraint. If you do need it, options include rewriting the configuration manually, scripting a conversion with the Symfony Config and Yaml components, or running this bundle out of band in a scratch Symfony project. Laravel itself does not ship a built-in configuration format converter.