common-gateway/sim-xml-to-zgw-bundle
symfony/dependency-injection, symfony/config, and symfony/console. Laravel’s service container is compatible but requires manual mapping (e.g., ServiceProvider bindings).commongateway:install). Laravel would need a proxy layer to expose these features (e.g., custom Artisan commands or API endpoints).XmlToZGWTransformer) but would need to adapt to Laravel’s service container and event system (e.g., replacing Symfony events with Laravel’s Events facade).XmlTranslatorInterface) and implement Laravel-specific adapters.dev-main (last release: 2024-06-25).SimpleXML, XMLReader, or Laravel packages like spatie/xml-to-array)?symfony/http-kernel) or reimplement only the translation logic?dev-main?XmlToZGWTransformer as a singleton).ZGWObjectFactory) via Laravel facades.commongateway:install as a custom Artisan command.src/Transformer/XmlToZGWTransformer.php) into a custom Laravel package.symfony/dependency-injection) and map to Laravel equivalents.XmlSchemaValidatorInterface).LaravelXmlSchemaValidator).| Symfony Component | Laravel Equivalent | Notes |
|---|---|---|
DependencyInjection |
Laravel Service Container | Use bind() in AppServiceProvider. |
Console |
Artisan Commands | Extend Illuminate\Console\Command. |
Config |
Laravel Config Files | Merge YAML/JSON configs. |
EventDispatcher |
Laravel Events | Replace EventDispatcher with event() helper. |
HttpKernel |
Laravel HTTP Layer | Only if using Symfony’s router. |
XmlSchema. Replace with:
DOMDocument + custom validation.spatie/xml-to-array for simpler cases.fill() or hydrate()).app/Services/XmlToZGWService.php).composer.json.How can I help you explore Laravel packages today?