GithubHelp home page GithubHelp logo

webda2l / bootstrap-bundle Goto Github PK

View Code? Open in Web Editor NEW

This project forked from braincrafted/bootstrap-bundle

0.0 1.0 0.0 586 KB

Adding Bootstrap from Twitter to your Symfony2 project is now as easy as pie.

Home Page: http://bootstrap.braincrafted.com

License: MIT License

PHP 91.22% JavaScript 8.10% CSS 0.68%

bootstrap-bundle's Introduction

BcBootstrapBundle

By Florian Eckerstorfer

Build Status

Note

There is currently no stable release that supports Bootstrap 3.0. I'm working on a 2.0 release, which supports Bootstrap 3 and generally improves the bundle. However, it will take some time for get a stable release ready. Please be patient.

In the meantime you can use the bundle, but you should have an understanding on how Symfony2 (especially configuration), Assetic and Composer works to get everything running.

About

BcBootstrapBundle is Bootstrap, from Twitter encapsulated in a Symfony2 bundle.

This bundle is highly opiniated by how I use Twitter Bootstrap and Symfony.

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., 1.3.*.

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

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

        return $bundles;
    }
    ...
}

Download Assets

This bundle does no longer contain the asset files from Twitter Bootstrap (images, stylesheets and JavaScripts). The best way to include those assets is to add Twitter Bootstrap to your composer.json:

{
   "require": {
        "twbs/bootstrap": "3.0.*"
    }
}

You can find a detailed description in the documentation.

More Information

Check out the documentation to find out how you can use BcBootstrapBundle in your Symfony2 project.

Compatibility

  • BcBootstrapBundle v1.3.*
    • Twitter Bootstrap v2.3.*
    • Symfony 2.2.*
  • BcBootstrapBundle v1.4.*
    • Twitter Bootstrap v2.3.*
    • Symfony 2.2.*
  • BcBootstrapBundle v1.5.*
    • Bootstrap v3.0.*
    • Symfony 2.2.*

Changelog

Version 1.5.0

  • Works with new Bootstrap repository twbs/bootstrap
  • Basic support for Bootstrap v3.0
  • Allow override options in menus
  • Extend from base form layout
  • Fixed problems with removing elemnts in JavaScript collection form type
  • Various other bugfixes

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

License

bootstrap-bundle's People

Watchers

 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.