PHPackages                             symfony/ux-twig-component - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. symfony/ux-twig-component

ActiveSymfony-bundle[Templating &amp; Views](/categories/templating)

symfony/ux-twig-component
=========================

Twig components for Symfony

v2.34.0(2mo ago)21814.8M—3.7%2120MITPHPPHP &gt;=8.1

Since Dec 3Pushed 1mo ago21 watchersCompare

[ Source](https://github.com/symfony/ux-twig-component)[ Packagist](https://packagist.org/packages/symfony/ux-twig-component)[ Docs](https://symfony.com)[ Fund](https://symfony.com/sponsor)[ GitHub Sponsors](https://github.com/fabpot)[ RSS](/packages/symfony-ux-twig-component/feed)WikiDiscussions 2.x Synced 1mo ago

READMEChangelog (2)Dependencies (26)Versions (57)Used By (20)Security (1)

Twig Components
===============

[](#twig-components)

Twig components give you the power to bind an object to a template, making it easier to render and reuse small template "units" - like an "alert", markup for a modal, or a category sidebar. A very simple example would be a reusable alert component:

[![Example of the AlertComponent](https://github.com/symfony/ux/raw/2.x/src/TwigComponent/alert-example.png?raw=true)](https://github.com/symfony/ux/blob/2.x/src/TwigComponent/alert-example.png?raw=true)

**This repository is a READ-ONLY sub-tree split**. See  to create issues or submit pull requests.

Sponsor
-------

[](#sponsor)

The Symfony UX packages are [backed](https://symfony.com/backers) by [Mercure.rocks](https://mercure.rocks).

Create real-time experiences in minutes! Mercure.rocks provides a realtime API service that is tightly integrated with Symfony: create UIs that update in live with UX Turbo, send notifications with the Notifier component, expose async APIs with API Platform and create low level stuffs with the Mercure component. We maintain and scale the complex infrastructure for you!

Help Symfony by [sponsoring](https://symfony.com/sponsor) its development!

Resources
---------

[](#resources)

- [Documentation](https://symfony.com/bundles/ux-twig-component/current/index.html)
- [Report issues](https://github.com/symfony/ux/issues) and [send Pull Requests](https://github.com/symfony/ux/pulls)in the [main Symfony UX repository](https://github.com/symfony/ux)

###  Health Score

71

—

ExcellentBetter than 100% of packages

Maintenance89

Actively maintained with recent releases

Popularity65

Solid adoption and visibility

Community48

Growing community involvement

Maturity72

Established project with proven stability

 Bus Factor3

3 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~28 days

Recently: every ~22 days

Total

57

Last Release

56d ago

Major Versions

v2.33.0 → 3.x-dev2026-03-21

PHP version history (3 changes)v2.0.0PHP &gt;=8.0

v2.10.0PHP &gt;=8.1

3.x-devPHP &gt;=8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/47313?v=4)[Fabien Potencier](/maintainers/fabpot)[@fabpot](https://github.com/fabpot)

---

Top Contributors

[![weaverryan](https://avatars.githubusercontent.com/u/121003?v=4)](https://github.com/weaverryan "weaverryan (117 commits)")[![smnandre](https://avatars.githubusercontent.com/u/1359581?v=4)](https://github.com/smnandre "smnandre (77 commits)")[![kbond](https://avatars.githubusercontent.com/u/127811?v=4)](https://github.com/kbond "kbond (60 commits)")[![Kocal](https://avatars.githubusercontent.com/u/2103975?v=4)](https://github.com/Kocal "Kocal (39 commits)")[![javiereguiluz](https://avatars.githubusercontent.com/u/73419?v=4)](https://github.com/javiereguiluz "javiereguiluz (20 commits)")[![WebMamba](https://avatars.githubusercontent.com/u/32077734?v=4)](https://github.com/WebMamba "WebMamba (18 commits)")[![sneakyvv](https://avatars.githubusercontent.com/u/1423157?v=4)](https://github.com/sneakyvv "sneakyvv (17 commits)")[![norkunas](https://avatars.githubusercontent.com/u/2722872?v=4)](https://github.com/norkunas "norkunas (7 commits)")[![onEXHovia](https://avatars.githubusercontent.com/u/3332033?v=4)](https://github.com/onEXHovia "onEXHovia (6 commits)")[![squrious](https://avatars.githubusercontent.com/u/7271091?v=4)](https://github.com/squrious "squrious (3 commits)")[![nicolas-grekas](https://avatars.githubusercontent.com/u/243674?v=4)](https://github.com/nicolas-grekas "nicolas-grekas (3 commits)")[![htmlshaman1](https://avatars.githubusercontent.com/u/54456637?v=4)](https://github.com/htmlshaman1 "htmlshaman1 (2 commits)")[![barbieswimcrew](https://avatars.githubusercontent.com/u/9333471?v=4)](https://github.com/barbieswimcrew "barbieswimcrew (2 commits)")[![alucas-campings](https://avatars.githubusercontent.com/u/143492004?v=4)](https://github.com/alucas-campings "alucas-campings (2 commits)")[![bocharsky-bw](https://avatars.githubusercontent.com/u/3317635?v=4)](https://github.com/bocharsky-bw "bocharsky-bw (2 commits)")[![alexislefebvre](https://avatars.githubusercontent.com/u/2071331?v=4)](https://github.com/alexislefebvre "alexislefebvre (2 commits)")[![mttsch](https://avatars.githubusercontent.com/u/98848360?v=4)](https://github.com/mttsch "mttsch (2 commits)")[![cavasinf](https://avatars.githubusercontent.com/u/25293190?v=4)](https://github.com/cavasinf "cavasinf (2 commits)")[![tacman](https://avatars.githubusercontent.com/u/619585?v=4)](https://github.com/tacman "tacman (2 commits)")[![yceruto](https://avatars.githubusercontent.com/u/2028198?v=4)](https://github.com/yceruto "yceruto (2 commits)")

---

Tags

componentsjavascriptsymfonysymfony-uxtwiguxtwigsymfony-uxcomponents

### Embed Badge

![Health badge](/badges/symfony-ux-twig-component/health.svg)

```
[![Health](https://phpackages.com/badges/symfony-ux-twig-component/health.svg)](https://phpackages.com/packages/symfony-ux-twig-component)
```

###  Alternatives

[symfony/ux-live-component

Live components for Symfony

1635.6M72](/packages/symfony-ux-live-component)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k16.7M310](/packages/easycorp-easyadmin-bundle)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[twig/cssinliner-extra

A Twig extension to allow inlining CSS

23018.5M55](/packages/twig-cssinliner-extra)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
