Giter Club home page Giter Club logo

bootstrap-bundle's Introduction

By Florian Eckerstorfer

Build Status

About

BraincraftedBootstrapBundle helps you integrate Bootstrap in your Symfony2 project.

Installation

First you need to add braincrafted/bootstrap-bundle to composer.json:

{
   "require": {
        "braincrafted/bootstrap-bundle": "dev-master"
    }
}

Please note that dev-master points to the latest release. If you want to use the latest development version please use dev-develop. Of course you can also use an explicit version number, e.g., 2.0.*.

You also have to add BraincraftedBootstrapBundle to your AppKernel.php:

// app/AppKernel.php
...
class AppKernel extends Kernel
{
    ...
    public function registerBundles()
    {
        $bundles = array(
            ...
            new Braincrafted\Bundle\BootstrapBundle\BraincraftedBootstrapBundle()
        );
        ...

        return $bundles;
    }
    ...
}

Additionally you have to install Bootstrap and jQuery as dependencies and configure Assetic to compile the LESS files. You can find more information in the Getting Started section of the documentation.

Compatibility

This bundle has two main dependencies, Symfony and Bootstrap. The following table shows which version of BraincraftedBootstrapBundle is compatible with which version of Symfony and Bootstrap.

BootstrapBundle Symfony Bootstrap jQuery
v1.3.* v2.2.* v2.3.* v1.9.*
v1.4.* v2.2.* v2.3.* v1.9.*
v2.0.* v2.3.* v3.0.* v1.10.*

Changelog

Version 2.0.0

  • Updated to Symfony v2.3.6
  • Updated to Bootstrap v3.0.1
  • Updated to jQuery v1.10.2
  • Remove include_responsive option because Bootstrap 3.0 no longer has a non responsive version
  • Added boostrap_money form type that uses Bootstraps prepend or append style to display the currency
  • percent form type uses Bootstraps append style to display the percent sign
  • Changed namespace back to Braincrafted\Bundle\BootstrapBundle
  • Support for custom variables.less
  • Several Twig filters are now functions
  • Added bootstrap_set_style and bootstrap_get_style Twig functions to globally set the style of forms
  • Added command to generate custom bootstrap.less file
  • Added command to copy icon fonts into web/ directory
  • Added Composer script handler for copying icon fonts
  • Pagination now supports disabled links
  • Added Twig function badge
  • Removed Twig filters badge_* (Bootstrap v3.0 does not include multiply badge styles)
  • Twig filters label_* are now Twig functions
  • Twig filter icon is now a Twig function
  • Added braincrafted_collection form type

Version 2.0.0-alpha2

  • Fixed compatibility with PHP 5.3 (Fixes #111)
  • Renamed braincrafted_collection to bootstrap_collection
  • widget_col, label_col and simple_col can be defined in form builder (Fixes #113)
  • Add support for input groups
  • Fix bug with inline forms when no placeholder is defined

Version 1.4.0

  • Changed namespace to Bc\Bundle\BootstrapBundle
  • Automatically configure Twig
  • Automatically configure KnpMenuBundle
  • Automatically configure KnpPaginatorBundle
  • Automatically configure Assetic
  • Improved layout of error messages in compound fields
  • Improved code style (usage of PHP_CodeSniffer and PHPMD)
  • Support for data-prototype option in collection fields
  • Helper and template for flash messages

Version 1.2.0

  • Added support for Assetic

License

bootstrap-bundle's People

Contributors

afiocre avatar axzx avatar benglass avatar cedriclombardot avatar darsd avatar dkvk avatar egrajeda avatar entropicamente avatar estheban avatar extreme avatar kirla3092 avatar kl3ryk avatar maartendekeizer avatar rdohms avatar regisnew avatar rickard2 avatar tarioch avatar userfriendly avatar webda2l avatar webmozart avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.