PHPackages                             pinano/bootstrap3-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. pinano/bootstrap3-bundle

ActiveSymfony-bundle[Framework](/categories/framework)

pinano/bootstrap3-bundle
========================

Symfony2 bundle for wrapping Twitter Bootstrap 3

3.3.0(11y ago)53.9k2MITCSSPHP &gt;=5.3.2

Since Sep 3Pushed 10y ago2 watchersCompare

[ Source](https://github.com/pinano/bootstrap3-bundle)[ Packagist](https://packagist.org/packages/pinano/bootstrap3-bundle)[ Docs](http://github.com/pinano/bootstrap3-bundle)[ RSS](/packages/pinano-bootstrap3-bundle/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (1)Versions (7)Used By (0)

Twitter Bootstrap 3 Bundle for Symfony2
=======================================

[](#twitter-bootstrap-3-bundle-for-symfony2)

Current Version
---------------

[](#current-version)

Bootstrap 3.3.5

Installation
------------

[](#installation)

### Add bundle to your composer.json file

[](#add-bundle-to-your-composerjson-file)

```
// composer.json

{
    "require": {
        // ...
        "pinano/bootstrap3-bundle": "dev-master"
    }
}
```

### Or, if you prefer, choose a specific version

[](#or-if-you-prefer-choose-a-specific-version)

```
// composer.json

{
    "require": {
        // ...
        "pinano/bootstrap3-bundle": "3.3.5"
    }
}
```

### Add bundle to your application kernel

[](#add-bundle-to-your-application-kernel)

```
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new Pinano\Bootstrap3Bundle\PinanoBootstrap3Bundle(),
        // ...
    );
}
```

### Download the bundle using Composer

[](#download-the-bundle-using-composer)

```
$ php composer.phar update pinano/bootstrap3-bundle
```

### Install assets

[](#install-assets)

Given your server's public directory is named "web", install the public vendor resources

```
$ php app/console assets:install web
```

Optionally, use the --symlink attribute to create links rather than copies of the resources

```
$ php app/console assets:install --symlink web
```

Usage
-----

[](#usage)

Once all the resources are in place, if you want to use the Bootstrap 3 javascript features (modals, dropdowns, etc.) you can edit any of your twig views or layouts to include the Bootstrap3 javascript files. If you don't want to use any of these features you can skip this step. Please refer to the [Bootstrap 3 documentation](http://getbootstrap.com/javascript/) to see what features are available.

Note: Bootstrap 3 javascript resources require that you have previously loaded jQuery library.

```
{% block javascripts %}

    {% javascripts
        ...
        '@PinanoBootstrap3Bundle/Resources/public/js/bootstrap.js'
        ...
        %}

    {% endjavascripts %}
{% endblock %}
```

Then you will want to load the css resources to take advantage of the grid and all the responsive utilities.

Note: The bootstrap-theme.css file is optional and is only intended to make Bootstrap 3 look nice out-of-the-box..

```
{% block stylesheets %}
    {% stylesheets filter='cssrewrite'
      ...
      'bundles/pinanobootstrap3/css/bootstrap.css'
      'bundles/pinanobootstrap3/css/bootstrap-theme.css'
      ...
      'bundles/yourawesomebundle/css/awesomestylesheet.css'
      ...
    %}

    {% endstylesheets %}
{% endblock %}
```

If you want to create your own SCSS mix-ins or variables, you should import Bootstrap 3 SCSS files instead of the CSSs and create a css output using any of the SCSS filters available for assetic:

```
{% block stylesheets %}
    {% stylesheets filter='cssrewrite,scss'
      ...
      'bundles/pinanobootstrap3/scss/_bootstrap.scss'
      'bundles/pinanobootstrap3/scss/bootstrap/_theme.scss'
      ...
      'bundles/yourawesomebundle/scss/awesomestylesheet.scss'
      ...
    %}

    {% endstylesheets %}
{% endblock %}
```

Note: See [kriswallsmith/assetic#53](https://github.com/kriswallsmith/assetic/issues/53) for known limitations of assetic with CSS referencing.

I usually follow a simple inheritance schema when it comes to designing twig templates. That is, I have an app/Resources/views/base.html.twig file that I use as a site-wide template. Then, inside every bundle I have my own Resources/views/layout.html.twig file that extends the base template. Depending on the kind of application I'm designing I can place the Bootstrap stuff in the site-wide or the bundle-wide template. Then every view of a given bundle will extend the corresponding bundle layout.html.twig file, which in turn extends the site-wide template.

The folks at Sensio Labs have already covered this approach and you can check it in their [documentation](http://twig.sensiolabs.org/doc/templates.html#template-inheritance).

Licenses
--------

[](#licenses)

I do not own Bootstrap 3 files at all, I'm just providing a Bundle package to easy-install them all. Refer to the source code of the included files from Bootstrap 3 for license information.

References
----------

[](#references)

1.
2.

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 84.2% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~86 days

Recently: every ~93 days

Total

6

Last Release

4248d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d069bc63eb122d0fb5bc6e5e99ea2640a7fe0260f616dfb3f0e175a576c82577?d=identicon)[pinano](/maintainers/pinano)

---

Top Contributors

[![pinano](https://avatars.githubusercontent.com/u/1442754?v=4)](https://github.com/pinano "pinano (16 commits)")[![tabbymarie](https://avatars.githubusercontent.com/u/485577?v=4)](https://github.com/tabbymarie "tabbymarie (3 commits)")

---

Tags

bundlebootstrapbootstrap3

### Embed Badge

![Health badge](/badges/pinano-bootstrap3-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/pinano-bootstrap3-bundle/health.svg)](https://phpackages.com/packages/pinano-bootstrap3-bundle)
```

###  Alternatives

[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.4M196](/packages/sulu-sulu)[web-auth/webauthn-framework

FIDO2/Webauthn library for PHP and Symfony Bundle.

51390.8k3](/packages/web-auth-webauthn-framework)[shopware/storefront

Storefront for Shopware

674.4M214](/packages/shopware-storefront)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.4M528](/packages/shopware-core)[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1175.2k](/packages/rcsofttech-audit-trail-bundle)[sulu/skeleton

Project template for starting your new project based on the Sulu content management system

29734.8k](/packages/sulu-skeleton)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
