2017 © Pedro Peláez

symfony-bundle bootstrap-bundle

Intregate Bootstrap theme with Symfony 2



Intregate Bootstrap theme with Symfony 2

  • Tuesday, July 31, 2018
  • by webeweb
  • Repository
  • 1 Watchers
  • 1 Stars
  • 2,620 Installations
  • JavaScript
  • 3 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 61 % Grown



Build Status Coverage Status Scrutinizer Code Quality Latest Stable Version License composer.lock, (*1)

Integrate Bootstrap theme with Symfony 2 and more., (*2)

bootstrap-bundle eases the use of Bootstrap to display components in your Symfony application by providing Twig extensions and PHP objects to do the heavy lifting. The bundle include the excellent framework Bootstrap and some useful plugins., (*3)

Bootstrap bundle, (*4)

Includes:, (*5)

Provides:, (*6)

  • Button Twig extension
  • Code Twig extension
  • Grid Twig extension (only for Bootstrap 3)
  • Typography Twig extension
  • Alert Twig extension
  • Badge Twig extension
  • Button group Twig extension
  • Glyphicon Twig extension
  • Label Twig extension
  • Progress bar Twig extension

If you like this package, pay me a beer (or a coffee) paypal.me, (*7)


PHP Symfony, (*8)


Open a command console, enter your project directory and execute the following command to download the latest stable version of this package:, (*9)

$ composer require webeweb/bootstrap-bundle

This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation., (*10)

Then, enable the bundle by adding it to the list of registered bundles in the app/AppKernel.php file of your project:, (*11)

    public function registerBundles() {
        $bundles = [
            // ...
            new WBW\Bundle\BootstrapBundle\WBWBootstrapBundle(),
            new WBW\Bundle\CoreBundle\WBWCoreBundle(),

        // ...

        return $bundles;

Once the bundle is added then do:, (*12)

$ php bin/console wbw:core:unzip-assets
$ php bin/console assets:install


Read the documentation., (*13)


To test the package, is better to clone this repository on your computer. Open a command console and execute the following commands to download the latest stable version of this package:, (*14)

$ git clone https://github.com/webeweb/bootstrap-bundle.git
$ cd bootstrap-bundle
$ composer install

Once all required libraries are installed then do:, (*15)

$ vendor/bin/phpunit


bootstrap-bundle is released under the MIT License. See the bundled LICENSE file for details., (*16)

If you like this work, please consider donating at paypal.me, (*17)

The Versions