tales-from-a-dev/twig-tailwind-extra
A Twig extension for Tailwind
v1.4.0
1.2M downloads/mo
#2404 most downloaded on Packagist
tales-from-a-dev/twig-tailwind-extra
What this package is like to depend on
Last release 9 days ago
14 Aug 2026
Ships fairly regularly
a new release about every 3 months
Most releases are documented
notes for 10 of 13 stable releases
Nothing withdrawn
no release was ever pulled
3 years old
13 releases · first in 2023
7 releases in the last 12 months
see the full history below
Release timeline
13 releases · Nov 2023 to Aug 2026Releases
latest 13-
v1.4.014 Aug 2026Release notes
Open source →Upgrading
This release moves the
tales-from-a-dev/tailwind-merge-phpconstraint from^0.3to^0.4. Two things to know before updating:- Merged output can change. 0.4 separates classes on any run of whitespace, where 0.3 only split on single spaces. A class list containing newlines or tabs was previously kept whole as one unrecognised class and passed through untouched; it now merges normally, so
"p-2\np-4"yields"p-4". 0.4 also fixes merging for legacy!combined with a/postfix, multibyte arbitrary values, and0-labelled arbitrary values. - Clear your cache pool once. Cache keys now embed a fingerprint of the configuration, so two differently configured merges can no longer return each other's results. Existing 0.3 entries use the old key format and will never be read again. Symfony users get this from a normal
cache:clear, sincecache.twig.tailwindis acache.systemchild.
Merged results are now also held in an in-memory LRU cache of 500 entries in front of the Symfony pool, sizable through the
cacheSizekey — see the documentation.What's Changed
- ⬆️ Upgrade tales-from-a-dev/tailwind-merge-php to 0.4 by @ker0x in #30
- 📝 Document the versioning policy by @ker0x in #31
Full Changelog: v1.3.0...v1.4.0
- Merged output can change. 0.4 separates classes on any run of whitespace, where 0.3 only split on single spaces. A class list containing newlines or tabs was previously kept whole as one unrecognised class and passed through untouched; it now merges normally, so
-
v1.3.009 Aug 2026Release notes
Open source →What's Changed
- ✨ Add
tailwind_classesfilter for mergeable Tailwind classes by @Kocal in #27 - 📝 Document tailwind_classes filter and TailwindClassList by @ker0x in #28
- use cache.system pool by @IndraGunawan in #26
New Contributors
- @IndraGunawan made their first contribution in #26
Full Changelog: v1.2.0...v1.3.0
- ✨ Add
-
v1.2.011 May 2026 -
v1.1.020 Feb 2026Release notes
Open source →What's Changed
- ⬆️ Upgrade tales-from-a-dev/tailwind-merge-php to 0.2 by @ker0x in #23
- 👷 Update CI configuration by @ker0x in #24
Full Changelog: v1.0.1...v1.1.0
-
v1.0.113 Feb 2026Release notes
Open source →What's Changed
- Improve performances for multiple identical calls to
merge(), by usingArrayAdaptercache by @Kocal in #22
Full Changelog: v1.0.0...v1.0.1
- Improve performances for multiple identical calls to
-
v1.0.021 Nov 2025 -
v0.6.016 Nov 2025Release notes
Open source → -
v0.5.016 Jun 2025 -
v0.4.008 May 2025 -
v0.3.007 Aug 2024Release notes
Open source →What's Changed
- Update atandalone Twig install instructions in index.md by @ampedweb in #9
- 👷 Add PHP 8.3 to test matrix by @ker0x in #10
- Update index.md by @ampedweb in #11
- Allow merge method to accept null as argument to prevent exception by @ampedweb in #12
New Contributors
Full Changelog: v0.2.1...v0.3.0
-
v0.2.118 Nov 2023Nothing published for this version
-
v0.2.018 Nov 2023Nothing published for this version
-
v0.1.017 Nov 2023Nothing published for this version