PHPackages                             gubler/elixir-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. [Framework](/categories/framework)
4. /
5. gubler/elixir-bundle

AbandonedArchivedSymfony-bundle[Framework](/categories/framework)

gubler/elixir-bundle
====================

This bundles integrates Laravel Elixir into Symfony

v0.3.0(9y ago)34.5k1MITPHPPHP ^5.3.9|^7.0

Since May 9Pushed 9y ago1 watchersCompare

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

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

Gubler/ElixirBundle
===================

[](#gublerelixirbundle)

`Gubler/ElixirBundle` is a small Symfony bundle to add an `elixr()` twig function. This function will allow you to use [Laravel Elixir's versioning](https://laravel.com/docs/5.2/elixir#versioning-and-cache-busting) just like if you were using it in a Laravel blade template (most of the code was taken from [Laravel/Framework](https://github.com/laravel/framework)).

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

[](#installation)

### Step 1: Install Elixir

[](#step-1-install-elixir)

Follow [Laravel Elixir's installation instructions](https://laravel.com/docs/elixir) to install Elixir.

You will need to add a `package.json` file for your application. Here is an example `package.json` with the requirements for Elixir:

```
{
  "private": true,
  "scripts": {
    "prod": "gulp --production",
    "dev": "gulp watch"
  },
  "devDependencies": {
    "gulp": "^3.9.1",
    "laravel-elixir": "^6.0.0-14",
    "laravel-elixir-vue-2": "^0.2.0",
    "laravel-elixir-webpack-official": "^1.0.2",
  }
}
```

### Step 2: Download the Bundle

[](#step-2-download-the-bundle)

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

```
$ composer require gubler/elixir-bundle
```

This command requires you to have Composer installed globally, as explained in the [installation chapter](https://getcomposer.org/doc/00-intro.md) of the Composer documentation.

### Step 3: Enable the Bundle

[](#step-3-enable-the-bundle)

Then, enable the bundle by adding it to the list of registered bundles in the `app/AppKernel.php` file of your project:

```
