This bundle provides simple Twitter bootstrap functionality to the symfony2 app.
JavaScript PHP
Pull request Compare This branch is 4 commits ahead, 3 commits behind smirik:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
DependencyInjection
Resources
Twig
.gitignore
README.markdown
SmirikBootstrapBundle.php
composer.json

README.markdown

Bootstrap bundle

Introduction

This bundle provides simple Twitter bootstrap functionality to the symfony2 app:

Features

  • Add bootstrap.css
  • Add bootstrap.js
  • Add fields.html.twig for form theming (with support twitter bootstrap)

Requirements

  • Symfony 2+ with twig.

Installation

Add bundle to your composer.json:

{
    "require": {
        "smirik/bootstrap-bundle": "*"
    }
}

Add to your AppKernel.php:

    new Smirik\BootstrapBundle\SmirikBootstrapBundle(),

How to use

Bundle also provides 2 twig functions for including css and js:

  {{ bootstrap_css() }}
  {{ bootstrap_js() }}

Roadmap

  • Comments, pulls, reviews, forks are welcome!

License

MIT.