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.
"Symfony UX Live Component lets us build real-time features faster and cheaper by keeping logic in PHP—where our team already excels. Think of it as ‘Livewire for Symfony’: we can add interactive forms, live dashboards, or collaborative tools without hiring frontend specialists or adopting a heavy JavaScript framework. It integrates seamlessly with our existing Symfony apps, reducing tech debt and speeding up time-to-market for features like live notifications or dynamic data tables. Mercure’s backing ensures scalability, and the MIT license keeps costs low."
Key Outcomes:
"Live Components lets us build real-time UIs in Symfony/Twig with minimal JavaScript. It’s like Livewire/Phoenix LiveView but Symfony-native, giving us:
data-model="username").debug:live-component command.Example Use Cases:
data-model attributes.Trade-offs:
Getting Started:
composer require symfony/ux-live-component.#[AsLiveComponent].data-model for props and data-action for events in Twig.Why Not [Alternative]?
How can I help you explore Laravel packages today?