2017 © Pedro Peláez
 

symfony-bundle require-bundle

RequireJS Bundle for Symfony2

image

bmatzner/require-bundle

RequireJS Bundle for Symfony2

  • Thursday, March 20, 2014
  • by bmatzner
  • Repository
  • 1 Watchers
  • 1 Stars
  • 6,670 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 0 % Grown

The README.md

RequireJS Bundle for Symfony2

Current Version

RequireJS 2.1.11, (*1)

Plugins: * cs: 0.4.3 * domReady: 2.0.1 * i18n: 2.0.4 * text: 2.0.10, (*2)

Installation

Add bundle to your composer.json file

``` js // composer.json, (*3)

{ "require": { // ... "bmatzner/require-bundle": "*" } }, (*4)


### Add bundle to your application kernel ``` php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Bmatzner\RequireBundle\BmatznerRequireBundle(), // ... ); }

Download the bundle using Composer

``` bash $ php composer.phar update bmatzner/require-bundle, (*5)


### Install assets Given your server's public directory is named "web", install the public vendor resources ``` bash $ php app/console assets:install web

Optionally, use the --symlink attribute to create links rather than copies of the resources, (*6)

``` bash $ php app/console assets:install --symlink web, (*7)


## Usage Refer to the desired files in your HTML template, e.g. ``` html <script type="text/javascript" src="{{ asset('bundles/bmatznerrequire/js/require.min.js') }}" data-main="{{ asset('js/myapp.js') }}"></script>

Licenses

Refer to the source code of the included files for license information, (*8)

References

  1. http://requirejs.org
  2. http://symfony.com

The Versions

20/03 2014

dev-master

9999999-dev http://requirejs.com/

RequireJS Bundle for Symfony2

  Sources   Download

MIT BSD-3

The Requires

 

javascript symfony amd

20/03 2014

2.1.11

2.1.11.0 http://requirejs.com/

RequireJS Bundle for Symfony2

  Sources   Download

MIT BSD-3

The Requires

 

javascript symfony amd

14/01 2014

2.1.10

2.1.10.0 http://requirejs.com/

RequireJS Bundle for Symfony2

  Sources   Download

MIT BSD-3

The Requires

 

javascript symfony amd

15/10 2013

2.1.9

2.1.9.0 http://requirejs.com/

RequireJS Bundle for Symfony2

  Sources   Download

MIT BSD-3

The Requires

 

javascript symfony amd

12/10 2013

2.1.8

2.1.8.0 http://requirejs.com/

RequireJS Bundle for Symfony2

  Sources   Download

MIT BSD-3

The Requires

 

javascript symfony amd

19/05 2013

2.1.6

2.1.6.0 http://requirejs.com/

RequireJS Bundle for Symfony2

  Sources   Download

MIT BSD-3

The Requires

 

javascript symfony amd

25/01 2013

2.1.4

2.1.4.0 http://requirejs.com/

RequireJS Bundle for Symfony2

  Sources   Download

MIT BSD-3

The Requires

 

javascript symfony amd

23/01 2013

2.1.3

2.1.3.0 http://requirejs.com/

RequireJS Bundle for Symfony2

  Sources   Download

MIT BSD-3

The Requires

 

javascript symfony amd