AkumaBootswatchBundle helps you integrate Bootswatch Themes in your Symfony2 project. AkumaBootswatchBundle also supports the official Sass port of Bootstrap and Font Awesome.
Developed by Nikita Makarov.
First you need to add akuma/bootswatch-bundle
to composer.json
:
{
"require": {
"akuma/bootsswatch-bundle": "dev-master"
}
}
Please note that dev-master
points to the latest release.
You also have to add AkumaBootswatchBundle
to your AppKernel.php
:
// app/AppKernel.php
//...
class AppKernel extends Kernel
{
//...
public function registerBundles()
{
$bundles = array(
...
new Akuma\Bundle\BootswatchBundle\AkumaBootswatchBundle()
);
//...
return $bundles;
}
//...
}
You also may customize some config options:
akuma_bootswatch:
less_filter: ~ # Default "none", and may be one of : "less", "lessphp", "sass", "scssphp" or "none"
auto_configure:
assetic: true # default true
twig: true # coming soon
knp_menu: true # coming soon
knp_paginator: true # coming soon
bootswatch:
path: ~ # default %kernel.root_dir%/../vendor/thomaspark/bootswatch
theme: ~ # default "cosmo"
fonts_dir: ~ # default %kernel.root_dir%/../web/fonts
font_awesome: ~ #default true
output_dir: ~ # default empty to output all into "%kernel.root_dir%/../web"
To install fonts you need to execute the next command:
php app/console akuma:bootswatch:install
This bundle has two main dependencies, Symfony2 and Bootswatch.
- First release
- The bundle is licensed under the MIT License
- The CSS and Javascript files from Twitter Bootstrap are licensed under the Apache License 2.0 for all versions before 3.1
- The CSS and Javascript files from Twitter Bootstrap are licensed under the MIT License for 3.1 and after