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

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

mosaxiv/cakephp-mix
===================

Helper to use laravel-mix with CakePHP3

v0.0.3(7y ago)53.8k2MITPHP

Since Aug 5Pushed 7y ago1 watchersCompare

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

READMEChangelog (3)Dependencies (3)Versions (4)Used By (0)

Mix plugin for CakePHP3
=======================

[](#mix-plugin-for-cakephp3)

Helper to use [laravel-mix](https://github.com/JeffreyWay/laravel-mix) with CakePHP3.

This is similar to the [mix()](https://readouble.com/laravel/5.5/en/helpers.html#method-mix) function of Laravel.

[![MIT License](https://camo.githubusercontent.com/db79b92834d905629b1aea42c9aa493da02060189e2af90840b1be5d6bf6ddf7/687474703a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f7374796c653d666c6174)](LICENSE)

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

[](#requirements)

- PHP 7.0+
- CakePHP 3.4+

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

[](#installation)

You can install this plugin into your CakePHP application using [composer](http://getcomposer.org).

The recommended way to install composer packages is:

```
composer require mosaxiv/cakephp-mix

```

Usage
-----

[](#usage)

### AppView Setup

[](#appview-setup)

load Helper

```
// src/View/AppView.php

namespace App\View;

use Cake\View\View;

class AppView extends View
{
    public function initialize()
    {
        $this->loadHelper('CakeMix.Mix');
    }
}
```

### Helper Usage

[](#helper-usage)

load script

```
// /js/app.js
$this->Mix->script('app');

//
$this->Mix->htmlScript('app');
```

load css

```
// /css/app.css
$this->Mix->css('app');

//
$this->Mix->htmlCss('app');
```

TIPS
----

[](#tips)

By using [create-laravel-mix](https://github.com/mosaxiv/create-laravel-mix) you can build environment fast.

Exsample:

```
npx create-laravel-mix react --public-dir webroot

```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity54

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

Total

3

Last Release

2841d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8197ca45b63937ac7fbe3fee0349baa186c553693430a7089f12825edba02204?d=identicon)[mosaxiv](/maintainers/mosaxiv)

---

Top Contributors

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

---

Tags

cakephpreactvuelaravel-mix

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[dereuromark/cakephp-tools

A CakePHP plugin containing lots of useful and reusable tools

338920.1k32](/packages/dereuromark-cakephp-tools)[markstory/asset_compress

An asset compression plugin for CakePHP. Provides file concatenation and a flexible filter system for preprocessing and minification.

3761.0M11](/packages/markstory-asset-compress)[ijpatricio/mingle

Use Vue and React in Laravel Livewire Applications.

43445.4k2](/packages/ijpatricio-mingle)[ishanvyas22/asset-mix

Asset Mix plugin for CakePHP

3375.4k2](/packages/ishanvyas22-asset-mix)[dereuromark/cakephp-shim

A CakePHP plugin to shim applications between major framework versions.

401.0M11](/packages/dereuromark-cakephp-shim)[cakedc/tiny-mce

TinyMCE Plugin for CakePHP

10790.2k](/packages/cakedc-tiny-mce)

PHPackages © 2026

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