symfony/ux-live-component
Build interactive UIs in Symfony with Live Components: stateful Twig components that update via Ajax without writing custom JavaScript. Handle actions, validation, and form binding, with predictable server-side rendering and smooth partial updates.
LiveProp, or is Doctrine mandatory?handle() method). Complex, with routing/dependency conflicts.symfony/twig-bundle.@foreach → Twig’s {% for %}).@vite() → Twig’s {{ asset() }}).x-on:click → Stimulus event listeners).Echo.channel() → Mercure’s EventSource).AppServiceProvider).LiveComponent basics (props, actions, validation).| Laravel Feature | Symfony UX LiveComponent Compatibility | Workaround |
|---|---|---|
| Blade Templating | ❌ No | Replace with Twig or use hybrid approach. |
| Eloquent ORM | ⚠️ Partial (via serializer) | Create Doctrine entities or adapt serializers. |
| Laravel Mix/Vite | ❌ No (Symfony AssetMapper) | Use Symfony’s Webpack Encore or migrate to Vite. |
| Laravel Echo/Pusher | ❌ No (Mercure required) | Use Mercure for LiveComponents, Echo for others. |
| Form Request Validation | ⚠️ Partial (Symfony Validator) | Adapt Laravel validation rules to Symfony’s constraints. |
| Inertia.js | ❌ No | Replace with Stimulus or hybrid approach. |
| Laravel’s CSRF Middleware | ⚠️ Conflict (Symfony’s security layer) | Disable Laravel’s CSRF or customize Symfony’s. |
| Queue Workers | ⚠️ Partial (Symfony Messenger) | Use Symfony’s Messenger or bridge queues. |
How can I help you explore Laravel packages today?