PHPackages                             evheniy/twitter-bootstrap-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. evheniy/twitter-bootstrap-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

evheniy/twitter-bootstrap-bundle
================================

The TwitterBootstrapBundle adds the ability to add latest Twitter Bootstrap to your application.

1.4.0(10y ago)14.4kMITPHPPHP &gt;=5.3.0

Since Apr 4Pushed 10y ago1 watchersCompare

[ Source](https://github.com/evheniy/TwitterBootstrapBundle)[ Packagist](https://packagist.org/packages/evheniy/twitter-bootstrap-bundle)[ RSS](/packages/evheniy-twitter-bootstrap-bundle/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (1)Dependencies (3)Versions (6)Used By (0)

TwitterBootstrapBundle
======================

[](#twitterbootstrapbundle)

[![knpbundles.com](https://camo.githubusercontent.com/73e7fedc1fe95dbaa396bd751b6944e372e2c2586a6ba7ba6ccaa9f5b8a1c3a9/687474703a2f2f6b6e7062756e646c65732e636f6d2f657668656e69792f54776974746572426f6f74737472617042756e646c652f6261646765)](http://knpbundles.com/evheniy/TwitterBootstrapBundle)

[![Latest Stable Version](https://camo.githubusercontent.com/ff8f1b6847b54397abf3b2ce2dd1a66a81995c0efcd5938730884a694bdeac10/68747470733a2f2f706f7365722e707567782e6f72672f657668656e69792f747769747465722d626f6f7473747261702d62756e646c652f762f737461626c652e737667)](https://packagist.org/packages/evheniy/twitter-bootstrap-bundle) [![Total Downloads](https://camo.githubusercontent.com/fdd37912e8f7e805981827ca4557afe60f9e1defb3e23d905ff07593ba9d58c2/68747470733a2f2f706f7365722e707567782e6f72672f657668656e69792f747769747465722d626f6f7473747261702d62756e646c652f646f776e6c6f6164732e737667)](https://packagist.org/packages/evheniy/twitter-bootstrap-bundle) [![Latest Unstable Version](https://camo.githubusercontent.com/a56997b048a29954fbd8a44ad4d6685e78ea41c5083ca6c5af6bbc59e96f0635/68747470733a2f2f706f7365722e707567782e6f72672f657668656e69792f747769747465722d626f6f7473747261702d62756e646c652f762f756e737461626c652e737667)](https://packagist.org/packages/evheniy/twitter-bootstrap-bundle) [![License](https://camo.githubusercontent.com/b3204ce837b1ca97ff6f84ebd2d90529e2f5106c1c71626a0565a527868c06e2/68747470733a2f2f706f7365722e707567782e6f72672f657668656e69792f747769747465722d626f6f7473747261702d62756e646c652f6c6963656e73652e737667)](https://packagist.org/packages/evheniy/twitter-bootstrap-bundle)

[![Build Status](https://camo.githubusercontent.com/013ac0486fba020d44d8c5aeade99a589b4acab70c6ab8c7648a7e8df2e7130f/68747470733a2f2f7472617669732d63692e6f72672f657668656e69792f54776974746572426f6f74737472617042756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/evheniy/TwitterBootstrapBundle)[![Coverage Status](https://camo.githubusercontent.com/5481806841118ef517979a66cff67909e4079766a23dbe65ca9f6ffea96cc879/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f657668656e69792f54776974746572426f6f74737472617042756e646c652f62616467652e7376673f6272616e63683d6d617374657226736572766963653d676974687562)](https://coveralls.io/github/evheniy/TwitterBootstrapBundle?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/915c07480069253b468d7dcf0106edbbd3fedf4be03360d4d9bb833dc7b6b6cd/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f657668656e69792f54776974746572426f6f74737472617042756e646c652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/evheniy/TwitterBootstrapBundle/?branch=master) [![Build Status](https://camo.githubusercontent.com/caf512646a26222a250850a31342f9711c5dc4898e1fc9deb2ea50898d8e3983/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f657668656e69792f54776974746572426f6f74737472617042756e646c652f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/evheniy/TwitterBootstrapBundle/build-status/master)

This bundle provides TwitterBootstrap in Symfony2 from CDN maxcdn.bootstrapcdn.com

Documentation
-------------

[](#documentation)

You can change TwitterBootstrap version:

```
twitter_bootstrap:
    version: 3.3.4

```

You can set TwitterBootstrap local version (it helps if maxcdn doesn't work).

```
twitter_bootstrap:
    local_js: '@AppBundle/Resources/public/js/bootstrap.min.js'

```

Default value: '@TwitterBootstrapBundle/Resources/public/js/bootstrap.min.js'

```
twitter_bootstrap:
    local_fonts_dir: '@AppBundle/Resources/public/fonts/'

```

Default value: '@TwitterBootstrapBundle/Resources/public/fonts/'

```
twitter_bootstrap:
    local_css: '@AppBundle/Resources/public/css/bootstrap.min.css'

```

Default value: '@TwitterBootstrapBundle/Resources/public/css/bootstrap.min.css'

```
twitter_bootstrap:
    local_theme: '@AppBundle/Resources/public/css/bootstrap-theme.min.css'

```

Default value: '@TwitterBootstrapBundle/Resources/public/css/bootstrap-theme.min.css'

You can set local CDN:

```
twitter_bootstrap:
    local_cdn: 'cdn.domain.com'

```

You can use old html version:

```
twitter_bootstrap:
    html5: false

```

Default value: true. If false script will be with type="text/javascript"

You can use async loading:

```
twitter_bootstrap:
    async: true

```

Default value: false. If true script will be with async="async"

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

[](#installation)

```
$ composer require evheniy/twitter-bootstrap-bundle "1.*"

```

Or add to composer.json

```
"evheniy/twitter-bootstrap-bundle": "1.*"

```

AppKernel:

```
public function registerBundles()
    {
        $bundles = array(
            ...
            new Evheniy\TwitterBootstrapBundle\TwitterBootstrapBundle(),
        );
        ...

```

config.yml:

```
#TwitterBootstrapBundle
twitter_bootstrap: ~

or

#TwitterBootstrapBundle
twitter_bootstrap:
    local_js: '@AppBundle/Resources/public/js/bootstrap.min.js'
    local_fonts_dir: '@AppBundle/Resources/public/fonts/'
    local_css: '@AppBundle/Resources/public/css/bootstrap.min.css'
    local_theme: '@AppBundle/Resources/public/css/bootstrap-theme.min.css'
    local_cdn: 'cdn.domain.com'
    version: 3.3.4
    html5: true
    async: false

```

And Assetic Configuration in config.yml:

```
#Assetic Configuration
assetic:
    bundles: [ TwitterBootstrapBundle ]

```

Add this string to your layout (styles and js)

```

    ...

    {%- include "TwitterBootstrapBundle:TwitterBootstrap:css.html.twig" -%}

    ...

    {%- include "TwitterBootstrapBundle:TwitterBootstrap:js.html.twig" -%}

```

The last step

```
app/console assetic:dump --env=prod --no-debug

```

License
-------

[](#license)

This bundle is under the [MIT](https://github.com/evheniy/TwitterBootstrapBundle/blob/master/Resources/meta/LICENSE) license.

[Документация на русском языке](http://makedev.org/articles/symfony/bundles/twitter_bootstrap_bundle.html)

[TwitterBootstrap](http://getbootstrap.com/)

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~60 days

Total

5

Last Release

3819d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8e25a30b83f9493998640ece1013e05059e4dd4ac55a482c650eb760ac37d843?d=identicon)[evheniy](/maintainers/evheniy)

---

Top Contributors

[![evheniy](https://avatars.githubusercontent.com/u/1702242?v=4)](https://github.com/evheniy "evheniy (27 commits)")

---

Tags

Symfony2twitterbootstraptwitter bootstraplatest

### Embed Badge

![Health badge](/badges/evheniy-twitter-bootstrap-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/evheniy-twitter-bootstrap-bundle/health.svg)](https://phpackages.com/packages/evheniy-twitter-bootstrap-bundle)
```

###  Alternatives

[cwspear/bootstrap-hover-dropdown

An unofficial Bootstrap plugin to enable Bootstrap dropdowns to activate on hover and provide a nice user experience.

1.3k153.1k](/packages/cwspear-bootstrap-hover-dropdown)[slywalker/twitter_bootstrap

CakePHP Bootstrap (for Twitter) Plugin

28532.2k](/packages/slywalker-twitter-bootstrap)[mediawiki/chameleon-skin

A highly flexible MediaWiki skin using Bootstrap 4

12481.8k2](/packages/mediawiki-chameleon-skin)[spoonx/sxbootstrap

A twitter bootstrap module for ZF2 (zend framework 2) based on rwoverdijk/assetmanager

3010.7k1](/packages/spoonx-sxbootstrap)[phpstrap/phpstrap

Bootstrap layout generator

1214.7k](/packages/phpstrap-phpstrap)

PHPackages © 2026

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