smirik/bootstrap-bundle

Simple bundle which add bootstrap css and js files to project and standard template to the form.

Installs: 8 425

Dependents: 1

Stars: 2

Watchers: 1

Forks: 2

Language: JavaScript

v2.3.2.2 2013-06-26 12:47 UTC

README

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.