PHPackages                             useclassy/laravel - 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. [Templating &amp; Views](/categories/templating)
4. /
5. useclassy/laravel

ActiveLibrary[Templating &amp; Views](/categories/templating)

useclassy/laravel
=================

Laravel integration for UseClassy - Transform class:modifier syntax in Blade templates

v2.1.0(1mo ago)3114MITPHPPHP ^8.2CI passing

Since Jul 26Pushed 1mo agoCompare

[ Source](https://github.com/jrmybtlr/useclassy-laravel)[ Packagist](https://packagist.org/packages/useclassy/laravel)[ RSS](/packages/useclassy-laravel/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (2)Dependencies (18)Versions (6)Used By (0)

UseClassy Laravel Package
=========================

[](#useclassy-laravel-package)

Laravel integration for UseClassy that transforms `class:modifier="value"` syntax in Blade templates.

Installation
------------

[](#installation)

```
composer require useclassy/laravel
```

The service provider will be automatically registered via Laravel's package auto-discovery.

### Vite + Tailwind companion

[](#vite--tailwind-companion)

This package rewrites Blade at compile time. For Tailwind JIT to discover the generated variant classes, also install [`vite-plugin-useclassy`](https://www.npmjs.com/package/vite-plugin-useclassy) in your app and set `language: "blade"`:

```
// vite.config.ts
import useClassy from "vite-plugin-useclassy";

export default {
  plugins: [
    useClassy({
      language: "blade",
    }),
    // ... other plugins
  ],
};
```

Point Tailwind at the plugin manifest (default `.classy/output.classy.html`):

- **Tailwind v4** — in your CSS entry: `@source "./.classy/output.classy.html";` (path relative to that CSS file)
- **Tailwind v3** — add `"./.classy/output.classy.html"` to the `content` array in `tailwind.config.*`

Or run `npx vite-plugin-useclassy init --language blade` from your app root to patch Vite, Tailwind, and editor settings when possible.

Usage
-----

[](#usage)

Use the `class:modifier` syntax in your Blade templates:

```

    Responsive heading that changes on large screens and hover

    Dark mode, responsive padding, and group hover

```

The package will automatically transform these during Blade compilation:

- `class:lg="text-3xl"` becomes `lg:text-3xl`
- `class:hover="text-blue-600"` becomes `hover:text-blue-600`
- `class:dark="bg-gray-800 text-white"` becomes `dark:bg-gray-800 dark:text-white`
- `class:group-hover="opacity-100"` becomes `group-hover:opacity-100`

These transformed classes are merged with any existing `class` attributes.

How it Works
------------

[](#how-it-works)

This package hooks into Laravel's Blade compiler to transform the UseClassy syntax before the template is rendered. It works seamlessly with:

- Hot module reloading
- Blade caching
- Laravel 11, 12, and 13

Requirements
------------

[](#requirements)

- PHP ^8.2
- Laravel ^11.0|^12.0|^13.0

License
-------

[](#license)

MIT

###  Health Score

46

—

FairBetter than 92% of packages

Maintenance94

Actively maintained with recent releases

Popularity18

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~178 days

Total

3

Last Release

32d ago

Major Versions

v1.0.0 → v2.0.02026-06-30

PHP version history (2 changes)v1.0.0PHP ^8.1

v2.0.0PHP ^8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/24998792?v=4)[Jeremy Butler](/maintainers/jrmybtlr)[@jrmybtlr](https://github.com/jrmybtlr)

---

Top Contributors

[![jrmybtlr](https://avatars.githubusercontent.com/u/24998792?v=4)](https://github.com/jrmybtlr "jrmybtlr (15 commits)")

---

Tags

laravelcssbladetailwinduseclassy

###  Code Quality

TestsPHPUnit

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/useclassy-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/useclassy-laravel/health.svg)](https://phpackages.com/packages/useclassy-laravel)
```

###  Alternatives

[moonshine/moonshine

Laravel administration panel

1.3k268.2k89](/packages/moonshine-moonshine)[psalm/plugin-laravel

Psalm plugin for Laravel

3345.4M354](/packages/psalm-plugin-laravel)[tallstackui/tallstackui

TallStackUI is a powerful suite of Blade components that elevate your workflow of Livewire applications.

731189.9k16](/packages/tallstackui-tallstackui)[hasinhayder/tyro-dashboard

Tyro Dashboard - Beautiful admin dashboard for managing Tyro roles, privileges, users, and settings

5495.1k](/packages/hasinhayder-tyro-dashboard)[hasinhayder/tyro-login

Tyro Login - Beautiful, customizable authentication views for Laravel 12 &amp; 13

2508.1k7](/packages/hasinhayder-tyro-login)[robsontenorio/mary

Gorgeous UI components for Livewire powered by daisyUI and Tailwind

1.5k612.7k24](/packages/robsontenorio-mary)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
