PHPackages                             instaclick/require-js-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. instaclick/require-js-bundle

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

instaclick/require-js-bundle
============================

This bundle provides integration of the RequireJS library into Symfony2

v1.0.7(12y ago)017MITJavaScriptPHP &gt;=5.3.2

Since Apr 4Pushed 12y ago15 watchersCompare

[ Source](https://github.com/instaclick/HearsayRequireJSBundle)[ Packagist](https://packagist.org/packages/instaclick/require-js-bundle)[ RSS](/packages/instaclick-require-js-bundle/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (4)Versions (12)Used By (0)

master: [![Build Status](https://camo.githubusercontent.com/0a827040396f953b95c1f6ca172ceb992881e736ce588ac25698f5b9e2322b96/68747470733a2f2f7472617669732d63692e6f72672f6865617273617969742f48656172736179526571756972654a5342756e646c652e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/hearsayit/HearsayRequireJSBundle)1.0: [![Build Status](https://camo.githubusercontent.com/5694a8d5cb890230cef0ea0d051bbb9e1f2512aec5b3bf4b285c02f05d1d4bc0/68747470733a2f2f7472617669732d63692e6f72672f6865617273617969742f48656172736179526571756972654a5342756e646c652e706e673f6272616e63683d312e30)](https://travis-ci.org/hearsayit/HearsayRequireJSBundle)

HearsayRequireJSBundle
======================

[](#hearsayrequirejsbundle)

Overview
--------

[](#overview)

This bundle provides integration of the [RequireJS](https://github.com/jrburke/requirejs) library into Symfony2.

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

[](#installation)

### 1. Using Composer (recommended)

[](#1-using-composer-recommended)

To install `HearsayRequireJSBundle` with [Composer](https://github.com/composer/composer) just add the following to your `composer.json` file:

```
{
    // ...
    "require": {
        // ...
        "hearsay/require-js-bundle": "2.0.*@dev"
        // ...
    }
    // ...
}
```

> Note that the `master` branch is under development and unstable yet. If you want to use stable version then specify the `1.0.*` version. However, remember that the `1.0` branch no longer provides new features, only bug fixes.

Then, you can install the new dependencies by running Composer's update command from the directory where your `composer.json` file is located:

```
$ php composer.phar update hearsay/require-js-bundle
```

Now, Composer will automatically download all required files, and install them for you. All that is left to do is to update your `AppKernel.php` file, and register the new bundle:

```
