iomedia
insider

Here we share what's
new at iomedia!

Symfony-UX: innovative user experiences

Technologies March 2024

What is Symfony-UX, you ask? Let's simplify things and start by exploring this fascinating concept.

Symfony

At the heart of Symfony-UX are elaborate libraries, harmoniously blending JavaScript and PHP, to give developers the tools they need to create remarkable user experiences. The backbone of this ecosystem is Stimulus, a surprisingly simple JavaScript framework inherited from the world of Ruby on Rails, which greatly facilitates the integration of interactive dynamics into web pages.

Symfony-UX doesn't stop there: it's surrounded by a varied set of libraries, enabling easy integration of technologies such as React, VueJS and ChartJS, offering great flexibility in the design of rich, interactive interfaces.

Turbo, another key component of Symfony-UX, transforms the web experience by simulating a single-page application (SPA) without leaving the comfort of your Symfony application. Although Turbo is designed for Symfony, its compatibility extends to any backend environment. It works in concert with Stimulus within Hotwired, a coherent whole even though each technology can be used independently.

Symfony-UX's major advantage lies in its ease of use, allowing developers to focus more on innovation than on technical constraints.

Turbo in action: suppressing page loading

The essence of Turbo lies in its ability to eliminate perceptible page loading times. When a link is clicked, Turbo retrieves only the necessary content and dynamically inserts it into the DOM, eliminating the need to reload CSS and JavaScript, for virtually instantaneous navigation.

This technique makes it possible to use server-side templating engines, such as Twig with Symfony, to build efficient, responsive SPAs.

Turbo Frames and Turbo Streams: key components

Turbo Frames allow a page to be segmented into independent sections, where the content of each section can be updated without affecting the rest of the page, similar to the idea of an iframe but much more integrated and dynamic.

Turbo Streams, on the other hand, go a step further, allowing several parts of the page to be updated simultaneously following an action, enriching interaction without the need for additional JavaScript.

Stimulus: Turbo's companion

Stimulus plays a central role in enriching the user experience without burdening the site with complex JavaScript code. It monitors the DOM for elements to control, simplifying interaction and making web pages more dynamic. In synergy with Turbo, Stimulus ensures fluid, reactive content updates, contributing to a seamless user experience.

In short, Symfony-UX, with its Turbo and Stimulus components, revolutionizes the way developers design web interactions, combining simplicity, efficiency and innovation to create captivating user experiences.

Web news

Latest insights, stories, and news from iomedia

Symfony

Symfony: Our backend development toolbox

We've been using the Symfony framework for many years. When we overhauled our CMS, we started with version 2.0, and we regularly update and use this framework for almost all our projects.

Planning

AIO Planning: the complete solution for efficient team management

For over eight years, iomedia has been honing its expertise in resource management and planning with a tool developed in-house. 

Symfony

Symfony-UX: innovative user experiences

What is Symfony-UX, you ask? Let's simplify things and start by exploring this fascinating concept.