Bootstrap.js 3.3.6
// composer.json
{
"require": {
// ...
"alexandermatveev/bootstrap-bundle": "*"
}
}
// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new AlexanderMatveev\BootstrapBundle\AlexanderMatveevBootstrapBundle(),
// ...
);
}
$ php composer.phar update alexandermatveev/bootstrap-bundle
Given your server's public directory is named "web", install the public vendor resources
$ bin/console assets:install web
Optionally, use the --symlink attribute to create links rather than copies of the resources
$ bin/console assets:install --symlink web
Refer to the desired files in your HTML template, e.g.
<link href="{{ asset('bundles/alexandermatveevbootstrap/js/bootstrap/css/bootstrap.min.css') }}" rel="stylesheet">
<script type="text/javascript" src="{{ asset('bundles/alexandermatveevbootstrap/js/bootstrap/js/bootstrap.min.js') }}"></script>
Refer to the source code of the included files for license information