braincrafted / bootstrap-bundle

BraincraftedBootstrapBundle integrates Bootstrap into Symfony2 by providing templates, Twig extensions, services and commands.
http://bootstrap.braincrafted.com
MIT License
399 stars 184 forks source link

BraincraftedBootstrapBundle

BraincraftedBootstrapBundle helps you integrate Bootstrap in your Symfony2 project. BootstrapBundle also supports the official Sass port of Bootstrap and Font Awesome.

Build Status Scrutinizer Quality Score Code Coverage

Latest Stable Version Total Downloads

Developed by Florian Eckerstorfer and amazing contributors.

Installation

First you need to add braincrafted/bootstrap-bundle to composer.json:

{
   "require": {
        "braincrafted/bootstrap-bundle": "dev-master"
    }
}

Please note that dev-master points to the latest release. If you want to use the latest development version please use dev-develop. Of course you can also use an explicit version number, e.g., 2.1.*.

You also have to add BraincraftedBootstrapBundle to your AppKernel.php:

// app/AppKernel.php
//...
class AppKernel extends Kernel
{
    //...
    public function registerBundles()
    {
        $bundles = array(
            ...
            new Braincrafted\Bundle\BootstrapBundle\BraincraftedBootstrapBundle()
        );
        //...

        return $bundles;
    }
    //...
}

Additionally you have to install Bootstrap and jQuery as dependencies and configure Assetic to compile the LESS files. You can find more information in the Getting Started section of the documentation.

Compatibility

This bundle has two main dependencies, Symfony and Bootstrap. The following table shows which version of BraincraftedBootstrapBundle is compatible with which version of Symfony and Bootstrap.

BootstrapBundle Symfony Bootstrap jQuery
v1.3.* v2.2.* v2.3.* v1.9.*
v1.4.* v2.2.* v2.3.* v1.9.*
v1.5.* v2.2.* v3.0.* (very basic) v1.9.*
v2.0.*
v2.1.*
v2.3.*
v2.4.*
v3.0.*
v3.1.*
v1.10.*
v1.11.*
v2.1.* v2.3.*
v2.4.*
v2.5.*
v3.0.*
v3.1.*
v3.2.*
sass v3.2.*
v1.10.*
v1.11.*
v2.2.* v2.3.*
v2.4.*
v2.5.*
v2.6.*
v2.7.*
v2.8.*
v3.0.*
v3.0.*
v3.1.*
v3.2.*
sass v3.2.*
v1.10.*
v1.11.*

Changelog

Version 2.2.0 (23 January 2016)

Version 2.1.2 (6 March 2015)

Version 2.1.1 (31 January 2015)

Version 2.1.0 (31 August 2014)

Version 2.1.0-beta2 (21 August 2014)

Version 2.1.0-beta1 (29 May 2014)

Version 2.1.0-alpha1 (16 May 2014)

Version 2.0.1 (3 April 2014)

Version 2.0.0-alpha1

Version 2.0.0-alpha2

Version 2.0.0-alpha3

Version 2.0.0-beta1

Version 2.0.0-beta2 (9 December 2013)

Version 2.0.0-stable (2 January 2014)

Version 1.5.0

Version 1.4.0

Version 1.2.0

License