opwoco/bootstrap-bundle

Easy integration of twitters bootstrap into symfony2

Installs: 212

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 4

Forks: 347

Language:CSS

Type:symfony-bundle

v3.0.0 2015-11-27 15:18 UTC

README

OpwocoBootstrapBundle

Branches

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

composer require opwoco/bootstrap-bundle:dev-master twbs/bootstrap:dev-master

Or config via composer.json

For LESS:

{
    "require": {
        "opwoco/bootstrap-bundle":    "~3.0.0",
        "twbs/bootstrap":           "v3.3.0"
    }
}

For SASS:

{
    "require": {
        "opwoco/bootstrap-bundle": "v3.0.0-rc1",
        "twbs/bootstrap-sass": "~3.3.0"
    }
}

Translations

If you use KnpPaginatorBundle with OpwocoBootstrapBundle, 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.

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

Documentation

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

Live Show

To see the bundle, its capabilities, and some more documentation samples just have a look at

MopaBootstrapBundle Live

Additional Resources:

Installation

Installation instructions are located in the

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
  • Knp Menu Extension for dealing with bootstrap menus and navbars.
  • helpers for dropdowns, seperators, etc.
  • Twig Extension for multiple icon sets
  • A generic Tab class to Manage bootstrap tabbing
  • Twig templates for KnpPaginatorBundle (https://github.com/knplabs/KnpPaginatorBundle)
  • Twig templates for CraueFormFlowBundle (https://github.com/craue/CraueFormFlowBundle)
  • Twig template for KnpMenuBundle (https://github.com/KnpLabs/KnpMenuBundle)
  • icon support on menu links

Translations

If you use 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.

Contribute

If you want to contribute your code to MopaBootstrapBundle please be sure that your PR's are valid to Symfony Coding Standards. You can automatically fix your code for that with PHP-CS-Fixer tool.

Any additional features should include documentation to accompany it.

You can see who already contributed to this project on Contributors page

License

This bundle is under the MIT license. For more information, see the complete LICENCE file in the bundle.