PHPackages                             misterbk/mix - 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. misterbk/mix

ActiveCraft-plugin[Utility &amp; Helpers](/categories/utility)

misterbk/mix
============

Helper plugin for Laravel Mix in Craft CMS templates

v1.8.1(11mo ago)51172.4k↓21.4%10[1 PRs](https://github.com/mister-bk/craft-plugin-mix/pulls)4MITPHPCI failing

Since Apr 21Pushed 2mo ago6 watchersCompare

[ Source](https://github.com/mister-bk/craft-plugin-mix)[ Packagist](https://packagist.org/packages/misterbk/mix)[ RSS](/packages/misterbk-mix/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (1)Versions (26)Used By (4)

 [![Craft Mix Logo](https://camo.githubusercontent.com/5b7c01a40b611381b02cf71555364972e50ebae0f15e90881277cadb382b0d4c/68747470733a2f2f63646e2e7261776769742e636f6d2f6d69737465722d626b2f63726166742d706c7567696e2d6d69782f6d61737465722f7265736f75726365732f696d672f63726166742d6d69782d6c6f676f2e737667)](https://camo.githubusercontent.com/5b7c01a40b611381b02cf71555364972e50ebae0f15e90881277cadb382b0d4c/68747470733a2f2f63646e2e7261776769742e636f6d2f6d69737465722d626b2f63726166742d706c7567696e2d6d69782f6d61737465722f7265736f75726365732f696d672f63726166742d6d69782d6c6f676f2e737667)

 Helper plugin for [Laravel Mix](https://github.com/JeffreyWay/laravel-mix/) in [Craft CMS](https://github.com/craftcms/cms/) templates.

 [ ![Latest Stable Version](https://camo.githubusercontent.com/2711f79ff928afb2b4027398d2e19729e4a9e02716634fcd39caf041b14ccd4b/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f762f6d6973746572626b2f6d69783f6c6162656c3d737461626c65) ](https://packagist.org/packages/misterbk/mix/) [ ![Total Downloads](https://camo.githubusercontent.com/8e458ae18991257398432b3be49071c6a5d5227089b2c72bbe43ed2835987aea/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f64742f6d6973746572626b2f6d6978) ](https://packagist.org/packages/misterbk/mix/) [ ![License](https://camo.githubusercontent.com/c4783d3bcb8ab257d224723f865cf5acd060c7bd474f7965d5c823a3f645620a/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f6c6963656e73652f6d6973746572626b2f6d6978) ](http://opensource.org/licenses/MIT/)

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

[](#requirements)

This plugin requires Craft CMS 4.0.0-alpha or later, or Craft CMS 5.0.0 or later.

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

[](#installation)

To install the plugin, follow these instructions.

1. Open your terminal and go to your Craft project:

```
cd /path/to/project
```

2. Then tell Composer to load the plugin:

```
composer require misterbk/mix
```

3. In the Craft Control Panel, go to Settings → Plugins and click the "Install" button for **Mix**.

Configuration
-------------

[](#configuration)

To configure Mix go to Settings → Plugins → Mix in the Craft Control Panel.

The available settings are:

- **Public Path** - The path of the public directory containing the index.php
- **Asset Path** - The path of the asset directory where Laravel Mix stores the compiled files

> **NOTE:** Both **Public Path** and **Asset Path** get trimmed to allow all kind of path combinations.
>
> - `/web/` + `/assets/` → `/web/assets/`
> - `web` + `assets` → `/web/assets/`
> - `/` + `assets` → `/assets/`
> - `/web` + `/` → `/web/`

Usage
-----

[](#usage)

Find a versioned CSS file.

```

```

Find a versioned JavaScript file.

```

```

Lazily find a versioned file and build the tag based on the file extension.

```
{{ craft.mix.withTag('js/main.js') | raw }}
```

Alternatively include the content of a versioned file inline.

```
{{ craft.mix.withTag('css/main.css', true) | raw }}
```

License
-------

[](#license)

Craft Mix is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT/).

###  Health Score

57

—

FairBetter than 98% of packages

Maintenance72

Regular maintenance activity

Popularity44

Moderate usage in the ecosystem

Community26

Small or concentrated contributor base

Maturity73

Established project with proven stability

 Bus Factor1

Top contributor holds 63.2% 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 ~175 days

Recently: every ~269 days

Total

18

Last Release

334d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3cf31b6b41c0e0ee8a18739cf0fb784bef235ec5047194bdb2177ba6f99337fc?d=identicon)[misterbk](/maintainers/misterbk)

---

Top Contributors

[![jacobmllr95](https://avatars.githubusercontent.com/u/2737132?v=4)](https://github.com/jacobmllr95 "jacobmllr95 (48 commits)")[![Konsti-O](https://avatars.githubusercontent.com/u/2579170?v=4)](https://github.com/Konsti-O "Konsti-O (17 commits)")[![benjamindavid](https://avatars.githubusercontent.com/u/2911900?v=4)](https://github.com/benjamindavid "benjamindavid (3 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")[![totov](https://avatars.githubusercontent.com/u/2348955?v=4)](https://github.com/totov "totov (2 commits)")[![internetztube](https://avatars.githubusercontent.com/u/6382364?v=4)](https://github.com/internetztube "internetztube (1 commits)")[![brandonkelly](https://avatars.githubusercontent.com/u/47792?v=4)](https://github.com/brandonkelly "brandonkelly (1 commits)")[![nilsenpaul](https://avatars.githubusercontent.com/u/6794819?v=4)](https://github.com/nilsenpaul "nilsenpaul (1 commits)")[![sergeifilippov](https://avatars.githubusercontent.com/u/123676?v=4)](https://github.com/sergeifilippov "sergeifilippov (1 commits)")

---

Tags

craftcraft-plugincraft3craft4craft5craftcmslaravel-mixmixCraftcraftcmscraft-pluginmixlaravel-mixcraft4

### Embed Badge

![Health badge](/badges/misterbk-mix/health.svg)

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

###  Alternatives

[verbb/navigation

Create navigation menus for your site.

90683.7k17](/packages/verbb-navigation)[verbb/formie

The most user-friendly forms plugin for Craft.

101372.9k40](/packages/verbb-formie)[verbb/comments

Add comments to your site.

13753.1k](/packages/verbb-comments)[verbb/tablemaker

Create customizable and user-defined table fields.

40168.8k1](/packages/verbb-tablemaker)[supercool/tablemaker

Create customizable and user-defined table fields.

40141.7k](/packages/supercool-tablemaker)[verbb/vizy

A flexible visual editor field for Craft.

4348.6k](/packages/verbb-vizy)

PHPackages © 2026

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