PHPackages                             tales-from-a-dev/twig-tailwind-extra - 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. tales-from-a-dev/twig-tailwind-extra

ActiveTwig[Templating &amp; Views](/categories/templating)

tales-from-a-dev/twig-tailwind-extra
====================================

A Twig extension for Tailwind

v1.1.0(2mo ago)34802.1k—2.6%47MITPHPPHP &gt;=8.1

Since Nov 17Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/tales-from-a-dev/twig-tailwind-extra)[ Packagist](https://packagist.org/packages/tales-from-a-dev/twig-tailwind-extra)[ Docs](https://github.com/tales-from-a-dev/twig-tailwind-extra)[ RSS](/packages/tales-from-a-dev-twig-tailwind-extra/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (7)Versions (13)Used By (7)

[![Tests](https://camo.githubusercontent.com/ad124d293cd6faa56b78f0b3b2e7c95a87632c3648af626475ab84366b7d9b23/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f74616c65732d66726f6d2d612d6465762f747769672d7461696c77696e642d65787472612f63692e796d6c3f6c6162656c3d7465737473267374796c653d666f722d7468652d6261646765)](https://github.com/tales-from-a-dev/flowbite-bundle/actions/workflows/ci.yml)[![PHP Version](https://camo.githubusercontent.com/32f92c123238cda9e6ea70bd553e28012095e121b5d26a44a5a1eed9378dcf67/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d2533453d382e312d3466356239332e7376673f7374796c653d666f722d7468652d6261646765)](https://camo.githubusercontent.com/32f92c123238cda9e6ea70bd553e28012095e121b5d26a44a5a1eed9378dcf67/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d2533453d382e312d3466356239332e7376673f7374796c653d666f722d7468652d6261646765)[![Twig Version](https://camo.githubusercontent.com/23d3a9083c88c003f7fc4f3fbe74a236be319112d38cf667d9c6d13884419b58/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f747769672d2533453d332e302d3030302e7376673f7374796c653d666f722d7468652d6261646765)](https://camo.githubusercontent.com/23d3a9083c88c003f7fc4f3fbe74a236be319112d38cf667d9c6d13884419b58/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f747769672d2533453d332e302d3030302e7376673f7374796c653d666f722d7468652d6261646765)[![Tailwind Version](https://camo.githubusercontent.com/1f45453df61dd57bd7f3fd0163c4c6f0b04adf6f1304e212368ad3787bdbca3e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7461696c77696e642d2533453d342e302d3030626366662e7376673f7374796c653d666f722d7468652d6261646765)](https://camo.githubusercontent.com/1f45453df61dd57bd7f3fd0163c4c6f0b04adf6f1304e212368ad3787bdbca3e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7461696c77696e642d2533453d342e302d3030626366662e7376673f7374796c653d666f722d7468652d6261646765)[![Packagist Version](https://camo.githubusercontent.com/74671777f457c02836a431b34db636c551d7540baf162198bcc333b3848f2da1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f74616c65732d66726f6d2d612d6465762f747769672d7461696c77696e642d65787472613f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/tales-from-a-dev/twig-tailwind-extra)[![License](https://camo.githubusercontent.com/73647eb6fd968386a79be4ff42f11efa5262512ff63e7c615b0fdde64534b91a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f74616c65732d66726f6d2d612d6465762f747769672d7461696c77696e642d65787472613f7374796c653d666f722d7468652d6261646765)](https://github.com/tales-from-a-dev/twig-tailwind-extra/blob/main/LICENSE)

Twig Tailwind Extra
===================

[](#twig-tailwind-extra)

This extension provides Twig filters for [Tailwind](https://tailwindcss.com/).

The following filters are available

- `tailwind_merge()`: Integration of [tailwind-merge-php](https://github.com/tales-from-a-dev/tailwind-merge-php)

Documentation
-------------

[](#documentation)

The bulk of the documentation is stored in the [`docs`](docs/index.md) directory of this bundle:

- [Prerequisites](docs/index.md#prerequisites)
- [Installation](docs/index.md#installation)
- [Usage](docs/index.md#usage)

Credits
-------

[](#credits)

- [Romain Monteil](https://github.com/ker0x)
- [All contributors](https://github.com/talesfromadev/twig-tailwind-extra/graphs/contributors)

License
-------

[](#license)

This extension is under the MIT license.
For the whole copyright, see the [LICENSE](LICENSE) file distributed with this source code.

###  Health Score

56

—

FairBetter than 98% of packages

Maintenance83

Actively maintained with recent releases

Popularity50

Moderate usage in the ecosystem

Community21

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 78.3% of commits — single point of failure

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

Recently: every ~62 days

Total

10

Last Release

88d ago

Major Versions

v0.6.0 → v1.0.02025-11-21

PHP version history (2 changes)v0.1.0PHP &gt;=8.2

v0.4.0PHP &gt;=8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/e808fb4134fc131be0a746ace35a1e2a9eef459bda68de780f817d2dab928279?d=identicon)[ker0x](/maintainers/ker0x)

---

Top Contributors

[![ker0x](https://avatars.githubusercontent.com/u/5331654?v=4)](https://github.com/ker0x "ker0x (36 commits)")[![ampedweb](https://avatars.githubusercontent.com/u/22029493?v=4)](https://github.com/ampedweb "ampedweb (7 commits)")[![Kocal](https://avatars.githubusercontent.com/u/2103975?v=4)](https://github.com/Kocal "Kocal (3 commits)")

---

Tags

phpsymfonytailwindtailwindcsstwigsymfonytwigtailwindextension

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/tales-from-a-dev-twig-tailwind-extra/health.svg)

```
[![Health](https://phpackages.com/badges/tales-from-a-dev-twig-tailwind-extra/health.svg)](https://phpackages.com/packages/tales-from-a-dev-twig-tailwind-extra)
```

###  Alternatives

[yellowskies/qr-code-bundle

Symfony Barcode &amp; QR Code Generator Bundle with Twig extension

36682.9k](/packages/yellowskies-qr-code-bundle)[nucleos/antispam-bundle

This bundle provides some basic features to reduce spam in symfony forms.

52105.1k](/packages/nucleos-antispam-bundle)[boekkooi/jquery-validation-bundle

Jquery form validation bundle for symfony 2

2773.9k1](/packages/boekkooi-jquery-validation-bundle)

PHPackages © 2026

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