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

v3.2.0(3w ago)22018.6M↓10.8%2220MITPHPPHP &gt;=8.4

Since Dec 3Pushed 1w 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 3.x Synced yesterday

READMEChangelog (7)Dependencies (69)Versions (62)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/3.x/src/TwigComponent/alert-example.png?raw=true)](https://github.com/symfony/ux/blob/3.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

77

—

ExcellentBetter than 100% of packages

Maintenance97

Actively maintained with recent releases

Popularity67

Solid adoption and visibility

Community51

Growing community involvement

Maturity82

Battle-tested with a long release history

 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 ~27 days

Recently: every ~16 days

Total

62

Last Release

21d ago

Major Versions

v2.36.0 → v3.0.02026-04-09

2.x-dev → v3.2.02026-06-11

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

v2.10.0PHP &gt;=8.1

v3.0.0PHP &gt;=8.4

### 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 (79 commits)")[![Kocal](https://avatars.githubusercontent.com/u/2103975?v=4)](https://github.com/Kocal "Kocal (70 commits)")[![kbond](https://avatars.githubusercontent.com/u/127811?v=4)](https://github.com/kbond "kbond (60 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)")[![yceruto](https://avatars.githubusercontent.com/u/2028198?v=4)](https://github.com/yceruto "yceruto (2 commits)")[![alexisLefebvre](https://avatars.githubusercontent.com/u/2071331?v=4)](https://github.com/alexisLefebvre "alexisLefebvre (2 commits)")[![cavasinf](https://avatars.githubusercontent.com/u/25293190?v=4)](https://github.com/cavasinf "cavasinf (2 commits)")[![htmlshaman1](https://avatars.githubusercontent.com/u/54456637?v=4)](https://github.com/htmlshaman1 "htmlshaman1 (2 commits)")[![alexislefebvre](https://avatars.githubusercontent.com/u/2071331?v=4)](https://github.com/alexislefebvre "alexislefebvre (2 commits)")[![barbieswimcrew](https://avatars.githubusercontent.com/u/9333471?v=4)](https://github.com/barbieswimcrew "barbieswimcrew (2 commits)")[![bocharsky-bw](https://avatars.githubusercontent.com/u/3317635?v=4)](https://github.com/bocharsky-bw "bocharsky-bw (2 commits)")[![mttsch](https://avatars.githubusercontent.com/u/98848360?v=4)](https://github.com/mttsch "mttsch (2 commits)")[![alucas-campings](https://avatars.githubusercontent.com/u/143492004?v=4)](https://github.com/alucas-campings "alucas-campings (2 commits)")

---

Tags

componentsjavascriptsymfonysymfony-uxtwiguxtwigsymfony-uxcomponents

###  Code Quality

TestsPHPUnit

### 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

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M388](/packages/easycorp-easyadmin-bundle)[sulu/sulu

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

1.3k1.4M203](/packages/sulu-sulu)[drupal/core-recommended

Locked core dependencies; require this project INSTEAD OF drupal/core.

6942.5M418](/packages/drupal-core-recommended)[symfony/ux-live-component

Live components for Symfony

1647.0M126](/packages/symfony-ux-live-component)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M568](/packages/shopware-core)[sylius/sylius

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

8.5k5.9M733](/packages/sylius-sylius)

PHPackages © 2026

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