ContainerInterface vs. Laravel’s Container/ServiceProvider.EventDispatcher vs. Laravel’s Events).akyos/builder-core) and adapt the UI layer to Laravel’s frontend stack (e.g., Livewire, Inertia.js).ParameterBag, FormBuilder) require rewrites.| Step | Action | Tools/Dependencies | Risk |
|---|---|---|---|
| 1 | Audit Core Needs | Compare feature parity with Laravel alternatives (e.g., Filament, Nova). | Low |
| 2 | Extract Logic | Isolate block definitions, storage, and validation into a composer package (e.g., vendor/akyos/builder-core). |
Medium |
| 3 | Adapter Layer | Create Laravel service providers to wrap Symfony services (e.g., Container, EventDispatcher). |
High |
| 4 | UI Integration | Replace Twig with Blade/Inertia.js for frontend. Use Livewire for interactivity if needed. | Medium |
| 5 | Testing | Write integration tests for block rendering and storage in Laravel’s context. | High |
| 6 | Deprecation Plan | Phase out Symfony-specific dependencies if possible. | Low |
{{ block.render() }} with custom Blade directives.KernelEvents → Laravel’s Events system (e.g., BlockSaved).symfony/*, twig/*).akyos/builder-core).akyos/builder-laravel) with:
FormBuilder → Laravel’s Form facade").view:clear) must be tested with dynamic blocks.Events are async by default—test for race conditions.lock()).| Risk | Impact | Mitigation |
|---|---|---|
| Symfony API Changes | Breaks Laravel adapter if BuilderBundle updates. | Pin to a specific version; avoid upstream updates. |
| Twig/Blade Rendering Bugs | Blocks fail to render in production. | Implement a fallback Blade renderer for critical blocks. |
| Event System Mismatch | Block saves trigger unexpected Laravel events. | Isolate event handling in a separate service layer. |
| Database Schema Drift | Eloquent migrations conflict with Doctrine. | Use a shared migration tool (e.g., Laravel’s Schema::table). |
| No Community Support | Critical bugs go unpatched. | Allocate internal resources for long-term maintenance. |
EventDispatcher, FormBuilder).How can I help you explore Laravel packages today?