You are browsing the documentation for BootstrapBundle v2.0, if you haven't upgraded yet you can still browse the documentation for BraincraftedBootstrapBundle v1.4.


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

Getting started Source Code on Github

  • Standards you already know

    Tools you already know are used to manage dependencies (Composer) and assets (Assetic) and we follow the PSR standards and conventions. You will know around if you are familiar with the Symfony ecosystem.

  • Sensible defaults and automatic confiugration

    Templates and bundles are automatically configured with sensible defaults to get you started. Don't worry, you can customize every aspect at any time.

  • Templates for forms, menus and pagination

    The bundles includes templates to style forms from the Symfony2 form component, menus from KnpMenuBundle and pagination from KnpPaginatorBundle without any additional markup.

  • Additional form types

    We've included additional form types, for example, to add interactive collection widgets to your forms.

  • Twig extensions

    Twig extensions are included in the bundle to help you style labels, badges and icons.

  • Helpers and services

    Helpers and services can be used to, for example, create nice looking flash messages in seconds.

  • Commands and script handlers

    Repetitive tasks are boring and easily forgotten. That's why the bundle adds commands and script handlers for Composer to do these things automatically for you.

  • Less and Sass

    BootstrapBundle supports both the Less and the Sass version of Bootstrap.