PHPackages                             corrivate/tailwhen - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. corrivate/tailwhen

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

corrivate/tailwhen
==================

helper function for conditional (tailwind) classes

v0.2(1y ago)21.1k↓50%MITPHP

Since Apr 4Pushed 1y ago1 watchersCompare

[ Source](https://github.com/LBannenberg/tailwhen)[ Packagist](https://packagist.org/packages/corrivate/tailwhen)[ RSS](/packages/corrivate-tailwhen/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

Tailwhen
========

[](#tailwhen)

Inspired by Laravel Blade's @class directive. What if you could just use that in any PHP? With composer autoloading you can:

```
