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

ActiveLibrary

themehybrid/hybrid-mix
======================

Hybrid Mix is a helper class for WordPress plugins and themes using Laravel Mix.

1.0.0(4y ago)104.3k↓100%11GPL-2.0-or-laterPHPPHP &gt;=5.6

Since Jun 29Pushed 4y ago3 watchersCompare

[ Source](https://github.com/themehybrid/hybrid-mix)[ Packagist](https://packagist.org/packages/themehybrid/hybrid-mix)[ Docs](https://github.com/themehybrid/hybrid-mix)[ RSS](/packages/themehybrid-hybrid-mix/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (3)Used By (1)

Hybrid\\Mix
===========

[](#hybridmix)

Hybrid Mix is a class for working with [Lavarel Mix](https://laravel-mix.com/). It adds helper methods for quickly grabbing asset files cached in the `mix-manifest.json` file.

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

[](#requirements)

- WordPress 5.7+.
- PHP 5.6+ (preferably 7+).
- [Composer](https://getcomposer.org/) for managing PHP dependencies.

Documentation
-------------

[](#documentation)

Create a new instance of the `Hybrid\Mix\Mix` class, passing in a file path and file URI to your project's `public` folder.

```
use Hybrid\Mix\Mix;

$mix = new Mix(
	'public/folder/path',
	'public/folder/uri'
);
```

Return the cached asset file URI with an appended ID using the `asset()` method:

```
// Stylesheet: public/folder/uri/css/style.css?id=xxx
$mix->asset( 'css/style.css' );

// JavaScript: public/folder/uri/js/app.js?id=xxx
$mix->asset( 'js/app.js' );
```

When using the core WordPress enqueue functions, make sure to set the `$ver` parameter to `null` (not `false`). The `id` parameter added to the file URL will serve for cache busting.

```
// Stylesheet.
wp_enqueue_style( $handle, $mix->asset( 'css/style.css' ), $deps, null, $media );

// JavaScript.
wp_enqueue_script( $handle, $mix->asset( 'js/app.js' ), $deps, null, $in_footer );
```

Copyright and License
---------------------

[](#copyright-and-license)

This project is licensed under the [GNU GPL](http://www.gnu.org/licenses/old-licenses/gpl-2.0.html), version 2 or later.

2021 © [Justin Tadlock](https://themehybrid.com).

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity47

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 ~0 days

Total

2

Last Release

1777d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ef868a4b45ef0263f49361744b8bb04e8f3cfcb8f3f79b274fc62823115ee596?d=identicon)[justintadlock](/maintainers/justintadlock)

---

Top Contributors

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

---

Tags

wordpress

### Embed Badge

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

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

###  Alternatives

[roots/wordpress

WordPress is open source software you can use to create a beautiful website, blog, or app.

19116.9M258](/packages/roots-wordpress)[aristath/kirki

Extending the WordPress customizer

1.3k73.0k4](/packages/aristath-kirki)[wpreadme2markdown/wpreadme2markdown

Convert WordPress Plugin readme.txt to Markdown

9564.6k4](/packages/wpreadme2markdown-wpreadme2markdown)[wpstarter/framework

The WpStarter Framework - Laravel Framework for WordPress

1810.1k4](/packages/wpstarter-framework)[tacowordpress/tacowordpress

WordPress custom post types that feel like CRUD models

232.2k](/packages/tacowordpress-tacowordpress)

PHPackages © 2026

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