Bootstrap 4.0.0
composer require alexandermatveev/bootstrap4-bundle
// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new AlexanderMatveev\Bootstrap4Bundle\AlexanderMatveevBootstrap4Bundle(),
// ...
);
}
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/alexandermatveevbootstrap4/lib/css/bootstrap.min.css') }}" rel="stylesheet">
<script type="text/javascript" src="{{ asset('bundles/alexandermatveevbootstrap4/lib/js/bootstrap.min.js') }}"></script>
Refer to the source code of the included files for license information