Weave 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

A Twig extension adding Tailwind CSS filters: tailwind_merge() integrates tailwind-merge-php to resolve conflicting utility classes, while tailwind_classes() builds mergeable class lists for Twig's html_attr() and html_attr_merge(). Requires PHP 8.1+, Twig 3+, and 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.
3mdikram/worldmoneywords
snowsoft/config
itmosoft/laravel-subscriptions
larva/laravel-ai-qwen
diephp/sequences
users-au/socialite-provider
twidpay/twid-logger
mrnewport/laravel-plaid
mrnewport/laravel-repo
mrnewport/laravel-docsign
mrnewport/laravel-stow
mrnewport/laravel-flow
mrnewport/laravel-priceable
mrnewport/laravel-nestedterms
fredmeng/laravel-apidoc-generator
itstructure/laravel-multilingual-tools
pdustdar/elasticsearch
markupai/php-sdk
rlacerda83/lumem-microservice-shipment
uni-method/symfony-lib