zgw-bundle is a Symfony bundle, not natively Laravel-compatible. However, Laravel’s Symfony Bridge (via symfony/http-foundation, symfony/routing, etc.) allows partial integration, but full bundle adoption would require Symfony’s full stack (e.g., Dependency Injection, Event Dispatcher, Console components)./api/zaken, /api/besluiten), reducing boilerplate for case management systems.HttpKernel in Laravel via spatie/laravel-symfony-support for partial bundle integration.Illuminate\Contracts\Container\Container).Route::prefix('zgw')->group(...)).| Risk Area | Mitigation Strategy |
|---|---|
| Symfony vs. Laravel | Adopt Symfony components incrementally (e.g., start with HttpFoundation). |
| OpenRegisters Updates | Pin versions strictly in composer.json; monitor for breaking changes. |
| Performance Overhead | Benchmark API responses; optimize with Laravel caching (Redis/Memcached). |
| Maintenance Burden | Assign a Symfony/Laravel hybrid expert to manage integration. |
| ZGW Compliance | Validate against latest ZGW 1.5.1 specs; test with VNG’s reference clients. |
php-app, symfony/console) in a Laravel project?Case, Document models).laravel-gateways)./zaken) with a Laravel controller using OpenRegisters.EventDispatcher) with Laravel equivalents.| Component | Compatibility Notes |
|---|---|
| Routing | Laravel’s router can proxy Symfony routes (e.g., Route::match(['GET'], '/zgw/{path}', ...)). |
| Dependency Injection | Use spatie/laravel-symfony-support to bind Symfony services to Laravel’s container. |
| Database | Doctrine vs. Eloquent: Avoid mixing; prefer Eloquent for new development. |
| Events/Listeners | Symfony’s EventDispatcher → Laravel’s Events facade (manual mapping required). |
| Console Commands | Wrap Symfony commands in Laravel’s Artisan or run separately. |
| Testing | Use PestPHP for Laravel tests; Symfony’s PHPUnit for bundle-specific tests. |
spatie/laravel-symfony-support)./zaken, /besluiten).symfony/http-kernel vs. Laravel’s illuminate/http).laravel-horizon) can handle async ZGW operations.| Risk | Impact | Mitigation |
|---|---|---|
| Bundle Abandonment | Project stranded on unsupported code. | Fork the bundle; contribute upstream. |
| OpenRegisters Breaking Change | API compatibility issues. | Pin versions; test against VNG’s reference clients. |
| Symfony-Laravel Conflict | Dependency hell, crashes. | Isolate Symfony in a microservice. |
| ZGW Compliance Drift | Non-compliance with VNG specs. | Automated testing against ZGW validators. |
| Performance Bottlenecks | Slow API responses. | Benchmark; optimize with Redis caching. |
How can I help you explore Laravel packages today?