PHPackages                             iulyanp/elixir-mix-bundle - 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. iulyanp/elixir-mix-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

iulyanp/elixir-mix-bundle
=========================

A Symfony bundle that integrates Laravel Mix

v0.10.0(5y ago)916.5k1MITPHPPHP ^5.6|^7.0|^8.0CI failing

Since Jan 15Pushed 5y ago3 watchersCompare

[ Source](https://github.com/iulyanp/elixir-mix-bundle)[ Packagist](https://packagist.org/packages/iulyanp/elixir-mix-bundle)[ RSS](/packages/iulyanp-elixir-mix-bundle/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (8)Dependencies (4)Versions (14)Used By (0)

[![Build Status](https://camo.githubusercontent.com/18525dd56b3a4af82f2644421797b36d22750dd1fe6dd71bb39863239731700d/68747470733a2f2f7472617669732d63692e6f72672f69756c79616e702f656c697869722d6d69782d62756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/iulyanp/elixir-mix-bundle)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/be00042175c466514ec9e34b1d124b3cf0b8c09850681b266fb02981826f591a/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f69756c79616e702f656c697869722d6d69782d62756e646c652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/iulyanp/elixir-mix-bundle/?branch=master)

ElixirMixBundle
===============

[](#elixirmixbundle)

> Note! Starting with Symfony 4 you can use the official webpack wrapper from Symfony: [Encore](https://symfony.com/doc/current/frontend/encore/installation.html). I also wrote a short blog post about how you can [Compile your assets with Symfony Encore](https://iulyanp.github.io/symfony/2017/06/18/symfony-encore/).

ElixirMixBundle is a Symfony bundle that integrates [Laravel Mix](https://github.com/JeffreyWay/laravel-mix). The purpose of the bundle is to offer the `mix()` twig function. This is exactly the same `mix()` function from Laravel blade template system.

### Requirements

[](#requirements)

Before you start installing this bundle you first have to ensure that Node.js and NPM are installed on your machine.

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

[](#installation)

### Step 1: Require the bundle with composer

[](#step-1-require-the-bundle-with-composer)

Open your terminal and run one of the following commands to download the bundle into your vendor directory.

If you have composer installed globally you can run:

```
$ composer require iulyanp/elixir-mix-bundle

```

Else you can go with:

```
$ php composer.phar require iulyanp/elixir-mix-bundle

```

### Step 2: Register the bundle in your AppKernel class

[](#step-2-register-the-bundle-in-your-appkernel-class)

Register the bundle in the app/AppKernel.php file of your project:

```
