Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
B

bootstrap-bundle

> 编程语言
Open source

BraincraftedBootstrapBundle integrates Bootstrap into Symfony2 by providing templates, Twig extensions, services and commands.

392 stars0 likes1 views
WebsiteGitHub

About

BraincraftedBootstrapBundle integrates Bootstrap into Symfony2 by providing templates, Twig extensions, services and commands.

BraincraftedBootstrapBundle

BraincraftedBootstrapBundle helps you integrate Bootstrap in your Symfony2 project. BootstrapBundle also supports the official Sass port of Bootstrap and Font Awesome. Developed by Florian Eckerstorfer and amazing contributors.

Installation

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

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:

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)

  • #331 Translate menu labels (by kamiramix)
  • #364 Update form_themes supported keyword to replace the form.resources keyword (by cordoval)
  • #367 Add missing ul tag for list list (by ocetnik)
  • #374 Update to Symfony 2.6 compatible form extensions (by kralos)
  • #376 Upgrade to Symfony 2.6 compatible form types (by althaus)
  • #382 Make use of choice_translation_domain option (by Restless-ET)
  • #383 Add button twig function (by bigfoot90)
  • #384 Fix ScriptHandler to work properly with HHVM (by mdurys)
  • #385 Use url option instead if hread attribute (by bigfoot90)
  • #392 Use icon helper with different icon set (by bigfoot90)
  • #393 Switch twig extesions to use SimpleFunction/SimpleFilter (by dkisselev)
  • #394 Add Twig integration tests for common methods (by dkisselev)
  • #395 Add integration tests for icon, parse_icons, button, button_link Twig extensions (by bigfoot90)
  • #397 Change JS removeField event to allow catch after removing element (by DarekTw)
  • #399 Twig deprecations (by benr77)
  • #404 Fix bc-bootstrap-collection.js .size() deprecations (by jounisuo)
  • #414 Fix compatibility with Symfony 3.0 (by lashus)
  • #417 Replace sameas with same (by bartwesselink)

Version 2.1.2 (6 March 2015)

  • When restoring form settings, don't throw an exception if there are no settings to restore (by florianeckerstorfer)
  • #356 Add missing responsive-embed.less (by blaues0cke)

Version 2.1.1 (31 January 2015)

  • #301 Fix generate command for Symfony v2.5 (by mumia)
  • #311 Trigger event on Add and Remove in collection (by tiagobrito)
  • #315 Add danger() method to FlashMessage (by florianeckerstorfer)
  • #316 Fix nested subform settings (by vith)
  • #320 Adjust path to bootstrap.scss (by mioduszewski)
  • #328 Add the parse_icons function for bootstrap_collection buttons (by kamiramix)
  • #329 Remove invalid statement (by KatharinaSt)
  • #337 Invalid class name .btn-small (by tmilos)
  • #342 Minor PHPCS fixes (by acrobat)
  • #344 Exclude iterable attribute values from displaying (by b-b3rn4rd)
  • #345 Add dismissible alert styling (by althaus)
  • #350 Fix inline style does not display placeholder when label is empty (by florianeckerstorfer)
  • #309 Include default variables files at top (by florianeckerstorfer)

Version 2.1.0 (31 August 2014)

  • #298 Fixed path to assets dir in bootstrap-sass v3.2 (by florianeckerstorfer)

Version 2.1.0-beta2 (21 August 2014)

  • #237 Pass label_attr to checkbox_row and radio_row in choice_widget_expanded (by florianeckerstorfer)
  • #241 Remove wrong button spacing when collection is empty (by sandello-alkr)
  • #241 Make web directory configurable in install command (by florianeckerstorfer)
  • #245 Add support for symfony-bin-dir (by nifr)
  • #249 Add nav class based on depth (by bkosborne)
  • #251 Add support for static form controls (by bdm-benzor)
  • #252 Fix behaviour when label = false (by rdohms)
  • #254 Remove whitespace in menu root block (by dirkluijk)
  • #260 Updated default jQuery path (by sprankhub)
  • #263 Fixed global error CSS class (by althaus)
  • #266 Fix column size of label is false (by jeroenvds)
  • #274 Added missing space in `bootstrap-collection (by bdm-benzor)
  • #275 Add help text to single checkbox and radio (by bostaf)
  • #276 Add support for leafo/scssphp (by stefanosala)
  • #279 Do not render value in file widget (by florianeckerstorfer)
  • #281 Add additional CSS classes to icons (by wodka)
  • #283 Make icon tag configurable (by wodka)
  • #286 Add support for form actions (by derpue)
  • #287 Add support for input group buttons (by rdohms)
  • #289 Removed trailing whitespace for checkbox and radio widget (by morticue)
  • #290 Add form type for static control (by derpue)

Version 2.1.0-beta1 (29 May 2014)

  • #238 Add empty value field when empty_value is not null in choice field
  • #239 Removed translation_domain from error messages
  • #214 Check for preSubmit errors (by sandello-alkr)
  • #240 Include head blo

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

PHP

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言