PHPackages                             networking/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. [Templating &amp; Views](/categories/templating)
4. /
5. networking/bootstrap-bundle

ActiveSymfony-bundle[Templating &amp; Views](/categories/templating)

networking/bootstrap-bundle
===========================

Easy integration of twitters bootstrap into symfony2

v6.2.5(3y ago)1148MITPHPPHP ^8.1

Since Sep 28Pushed 2y ago3 watchersCompare

[ Source](https://github.com/networking/bootstrap-bundle)[ Packagist](https://packagist.org/packages/networking/bootstrap-bundle)[ RSS](/packages/networking-bootstrap-bundle/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (9)Versions (10)Used By (0)

NetworkingBootstrapBundle (Clone of MopaBootstrapBundle)
========================================================

[](#networkingbootstrapbundle-clone-of-mopabootstrapbundle)

This is a clone of the MopaBootstrapBundle, which works with symfony 6.

I created this clone, so that I can continue developing our InitCmsBundle with mopa/bootstrap-bundle.

This Bundle will likely be removed once the mopa/bootstrap-bundle can be used with symfony 6.

For official documentation, view the mopa/bootstrap-bundle phiamo/MopaBootstrapBundle/

[![Build Status](https://github.com/phiamo/MopaBootstrapBundle/workflows/Continuous%20integration/badge.svg?branch=master)](https://github.com/phiamo/MopaBootstrapBundle/actions?query=workflow%3A%22Continuous%20integration%22%20branch%3Amaster)[![SensioLabsInsight](https://camo.githubusercontent.com/242306dfaa6aac59bacde1e786b7deb07e06d4c328863e4e284d379c5b18ed4d/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f30613664626434632d373134622d343761342d623636322d3235346364663665633230382f6d696e692e706e67)](https://insight.sensiolabs.com/projects/0a6dbd4c-714b-47a4-b662-254cdf6ec208)[![Coverage Status](https://camo.githubusercontent.com/2b95bfcdc3e16ecd5d9617e61adbc033993e732b9d3c829bd215c0f552781c10/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f706869616d6f2f4d6f7061426f6f74737472617042756e646c652f62616467652e737667)](https://coveralls.io/r/phiamo/MopaBootstrapBundle)

MopaBootstrapBundle is a collection of code to integrate twitter's bootstrap () as easy as possible into your symfony () Project.

To use MopaBootstrapBundle and Twitter's Bootstrap 3 in your project add it via [composer](Resources/doc/install/1-getting-started.md)

Versions and dependencies
-------------------------

[](#versions-and-dependencies)

MopaBootstrapBundleBootstrapSymfonyPHP\[**3.5**\] (**master**)^3.0^4.4 || ^5.1 || ^6.1^7.2 || ^8.0Updates
-------

[](#updates)

*New in 3.1*: The way `horizontal` works has been slightly altered due to a change in Symfony forms. This may or may not affect some behavior of your existing forms. ALL root form elements, whether they have a parent form or not will start with `horizontal` === `true` (or whatever value you set in the config). For the most part this shouldn't affect many users.

`horizontal` will also correctly pass itself down to collection types (and all child forms). So if your collection is horizontal, so will the collection items. If you want your collection items only to be inline, then you can pass these options to your collection:

```
array(
    'entry_options' => array('horizontal' => false), //   2.8+
    'options' => array('horizontal' => false),       // < 2.8
)
```

`horizontal_wrap_children` has been removed, as this can be solved using the above options.

Branches
--------

[](#branches)

To use this bundle with bootstrap 3 use the latest release:

```
composer require networking/bootstrap-bundle twbs/bootstrap
```

Or config via composer.json

For LESS:

```
{
    "require": {
        "networking/bootstrap-bundle": "~3.0",
        "twbs/bootstrap": "~3.3.0"
    }
}
```

For SASS:

```
{
    "require": {
        "networking/bootstrap-bundle": "~3.0",
        "twbs/bootstrap-sass": "~3.3.0"
    }
}
```

If you wish to use the current master branch, then use the following:

```
composer require networking/bootstrap-bundle:dev-master twbs/bootstrap:dev-master
```

For bootstrap 2 use the v2.3.x branch:

```
composer require networking/bootstrap-bundle:2.3.x-dev twbs/bootstrap:2.3.2
```

To understand which versions are currently required have a look into `BRANCHES.md`

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

[](#documentation)

The bulk of the documentation is stored in the [Resources/doc](Resources/doc) folder in this bundle In any case, if something is not working as expected after a update:

- [READ the CHANGELOG!](https://github.com/phiamo/MopaBootstrapBundle/blob/master/CHANGELOG.md)

Live Show
---------

[](#live-show)

To see the bundle, its capabilities and some more doc just have a look on

[MopaBootstrapBundle Live](http://bootstrap.mohrenweiserpartner.de)

Additional Resources:

- [MopaBootstrapSandboxBundle](http://github.com/phiamo/MopaBootstrapSandboxBundle) - Seperate live docs from code
- [symfony-bootstrap](https://github.com/phiamo/symfony-bootstrap) is also available

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

[](#installation)

Installation instructions are located in the

- [master documentation](Resources/doc/install/1-getting-started.md)

Included Features
-----------------

[](#included-features)

- Bootstrap Version detection via Composer Bridge
- Twig Extensions and templates for use with symfony2 Form component
    - control your form either via the form builder or the template engine
    - control nearly every bootstrap2 form feature
    - javascript and twig blocks for dynamic collections
- A generic Navbar class to generate your Navbar outside the template
    - helpers for dropdowns, seperators, etc.
- A generic Tab class to Manage bootstrap tabbing
- Twig templates for KnpPaginatorBundle ()
- Twig templates for CraueFormFlowBundle ()
- Twig template for KnpMenuBundle ()
    - icon support on menu links

Translations
------------

[](#translations)

If you use [KnpPaginatorBundle](https://github.com/KnpLabs/KnpPaginatorBundle) with MopaBootstrapBundle, you can translate labels to your language. To do this add new file

```
Resources/translations/pagination.[YOUR LOCALE CODE].yml
```

As example you have there Polish translation.

Versioning
----------

[](#versioning)

We aim to follow [semantic versioning](http://semver.org) with our releases.

Contribute
----------

[](#contribute)

If you want to contribute your code to MopaBootstrapBundle please be sure that your PR's are valid to Symfony2.1 Coding Standards. You can automatically fix your code for that with [PHP-CS-Fixer](http://cs.sensiolabs.org) tool.

You can see who already contributed to this project on [Contributors](https://github.com/phiamo/MopaBootstrapBundle/contributors) page

License
-------

[](#license)

This bundle is under the MIT license. For more information, see the complete [LICENSE](Resources/meta/LICENSE) file in the bundle.

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity62

Established project with proven stability

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 ~37 days

Total

8

Last Release

1110d ago

Major Versions

v5.1.1 → v6.22023-02-02

PHP version history (3 changes)v5.1PHP ^7.2 || ^8.0

v6.2PHP ^8.0

v6.2.5PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/10ac78019c4fdc4ab39760a2f94774fd75c08e8387d56a549c3f4156571a1912?d=identicon)[ychadwick](/maintainers/ychadwick)

---

Tags

templatebootstrapformextra formbootstrap form

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M388](/packages/easycorp-easyadmin-bundle)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k5.9M735](/packages/sylius-sylius)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.1k17.8k](/packages/prestashop-prestashop)[kimai/kimai

Kimai - Time Tracking

4.8k9.0k1](/packages/kimai-kimai)[chameleon-system/chameleon-base

The Chameleon System core.

1028.6k5](/packages/chameleon-system-chameleon-base)[contao/core-bundle

Contao Open Source CMS

1231.6M2.8k](/packages/contao-core-bundle)

PHPackages © 2026

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