akuma/bootswatch-bundle

Akuma Bootswatch Bundle

Installs: 568

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 2

Open Issues: 0

Language:HTML

Type:symfony-bundle

1.0.6 2016-07-08 10:51 UTC

This package is auto-updated.

Last update: 2024-11-05 23:16:57 UTC


README

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.

Installation

First you need to add akuma/bootswatch-bundle to composer.json:

{
   "require": {
        "akuma/bootswatch-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;
    }
    //...
}

Configuration

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

Compatibility

This bundle has two main dependencies, Symfony2 and Bootswatch.

Changelog

Version 1.0.0

  • First release

License

  • 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