bmatzner/lodash-bundle

Lo-Dash Bundle for Symfony2

Installs: 2 738

Dependents: 0

Watchers: 1

Language: JavaScript

2.4.1 2013-12-05 22:27 UTC

README

Lo-Dash Bundle for Symfony2

Lo-Dash v2.4.1

Installation

Add bundle to your composer.json file

// composer.json

{
    "require": {
        // ...
        "bmatzner/lodash-bundle": "~2.4"
    }
}

Add bundle to your application kernel

// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new Bmatzner\LoDashBundle\BmatznerLoDashBundle(),
        // ...
    );
}

Download the bundle using Composer

$ php composer.phar update bmatzner/lodash-bundle

Install assets

Given your server's public directory is named "web", install the public vendor resources

$ php app/console assets:install web

Optionally, use the --symlink attribute to create links rather than copies of the resources

$ php app/console assets:install --symlink web

Usage

Refer to the desired files in your HTML template, e.g.

<script type="text/javascript" src="{{ asset('bundles/bmatznerlodash/js/lodash.min.js') }}"></script>

Licenses

Refer to the source code of the included files for license information

References

  1. http://lodash.com/
  2. http://symfony.com/