Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Twig Tailwind Extra Laravel Package

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

Twig extension that adds Tailwind helpers to your templates. Includes a tailwind_merge() filter powered by tailwind-merge-php to intelligently combine Tailwind CSS class strings and resolve conflicts. Requires PHP 8.1+, Twig 3+, Tailwind 4+.

View on GitHub
Deep Wiki
Context7
v1.4.0

Upgrading

This release moves the tales-from-a-dev/tailwind-merge-php constraint from ^0.3 to ^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, and 0-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, since cache.twig.tailwind is a cache.system child.

Merged results are now also held in an in-memory LRU cache of 500 entries in front of the Symfony pool, sizable through the cacheSize key — see the documentation.

What's Changed

Full Changelog: https://github.com/tales-from-a-dev/twig-tailwind-extra/compare/v1.3.0...v1.4.0

v1.3.0

What's Changed

New Contributors

Full Changelog: https://github.com/tales-from-a-dev/twig-tailwind-extra/compare/v1.2.0...v1.3.0

v1.2.0

What's Changed

Full Changelog: https://github.com/tales-from-a-dev/twig-tailwind-extra/compare/v1.1.0...v1.2.0

v1.0.1

What's Changed

Full Changelog: https://github.com/tales-from-a-dev/twig-tailwind-extra/compare/v1.0.0...v1.0.1

v0.5.0

What's Changed

New Contributors

Full Changelog: https://github.com/tales-from-a-dev/twig-tailwind-extra/compare/v0.4.0...v0.5.0

v0.4.0
v0.3.0

What's Changed

New Contributors

Full Changelog: https://github.com/tales-from-a-dev/twig-tailwind-extra/compare/v0.2.1...v0.3.0

v0.2.1
v0.2.0

What's Changed

Full Changelog: https://github.com/tales-from-a-dev/twig-tailwind-extra/compare/v0.1.0...v0.2.0

v0.1.0

First release 🥳

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
calmfox/watch-sylius
damienfern/grpc-symfony-bundle
atoolo/index-bundle
atoolo/genai-bundle
coprotoai/laravel-ticket
davidjln/llm-carbon-bundle
cryonighter/valid-request-bundle
coolms/taxonomy-bundle
coolms/field-bundle
articulate-orm/symfony
aaix/laravel-tall-architect
ephoto/akeneo-connector
emmanuelballery/eb-plantumlbundle
emielburgman/symfony-visitor-beacon
emielburgman/symfony-visit-storage
emielburgman/symfony-security-headers
emielburgman/symfony-log-viewer
emarref/xdebug-bundle
emarref/pubnub-bundle
elriseio/finance-money-bundle