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

A Twig extension for Tailwind

Maintainers

Package info

github.com/tales-from-a-dev/twig-tailwind-extra

Type:twig

pkg:composer/tales-from-a-dev/twig-tailwind-extra

Transparency log

Statistics

Installs: 1 244 869

Dependents: 13

Suggesters: 0

Stars: 37

Open Issues: 1

v1.4.0 2026-08-14 11:51 UTC

This package is auto-updated.

Last update: 2026-08-22 10:17:58 UTC


README

Tests PHP Version Twig Version Tailwind Version Packagist Version License

Twig Tailwind Extra

This extension provides Twig filters for Tailwind.

The following filters are available

  • tailwind_merge(): Integration of tailwind-merge-php
  • tailwind_classes(): Build a mergeable list of Tailwind classes for use with Twig's html_attr()/html_attr_merge()

Documentation

The bulk of the documentation is stored in the docs directory of this bundle:

Versioning

This extension follows semantic versioning. The tales-from-a-dev/tailwind-merge-php constraint is moved in a minor release, so a minor may change merged output wherever the merger fixed a bug.

Credits

License

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