2017 © Pedro Peláez
 

symfony-bundle twitter-bootstrap-bundle

The TwitterBootstrapBundle adds the ability to add latest Twitter Bootstrap to your application.

image

evheniy/twitter-bootstrap-bundle

The TwitterBootstrapBundle adds the ability to add latest Twitter Bootstrap to your application.

  • Wednesday, December 2, 2015
  • by evheniy
  • Repository
  • 1 Watchers
  • 1 Stars
  • 3,838 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 5 % Grown

The README.md

TwitterBootstrapBundle

knpbundles.com, (*1)

Latest Stable Version Total Downloads Latest Unstable Version License, (*2)

Build Status Coverage Status Scrutinizer Code Quality Build Status, (*3)

This bundle provides TwitterBootstrap in Symfony2 from CDN maxcdn.bootstrapcdn.com, (*4)

Documentation

You can change TwitterBootstrap version:, (*5)

twitter_bootstrap:
    version: 3.3.4

You can set TwitterBootstrap local version (it helps if maxcdn doesn't work)., (*6)

twitter_bootstrap:
    local_js: '@AppBundle/Resources/public/js/bootstrap.min.js'

Default value: '@TwitterBootstrapBundle/Resources/public/js/bootstrap.min.js', (*7)

twitter_bootstrap:
    local_fonts_dir: '@AppBundle/Resources/public/fonts/'

Default value: '@TwitterBootstrapBundle/Resources/public/fonts/', (*8)

twitter_bootstrap:
    local_css: '@AppBundle/Resources/public/css/bootstrap.min.css'

Default value: '@TwitterBootstrapBundle/Resources/public/css/bootstrap.min.css', (*9)

twitter_bootstrap:
    local_theme: '@AppBundle/Resources/public/css/bootstrap-theme.min.css'

Default value: '@TwitterBootstrapBundle/Resources/public/css/bootstrap-theme.min.css', (*10)

You can set local CDN:, (*11)

twitter_bootstrap:
    local_cdn: 'cdn.domain.com'

You can use old html version:, (*12)

twitter_bootstrap:
    html5: false

Default value: true. If false script will be with type="text/javascript", (*13)

You can use async loading:, (*14)

twitter_bootstrap:
    async: true

Default value: false. If true script will be with async="async", (*15)

Installation

$ composer require evheniy/twitter-bootstrap-bundle "1.*"

Or add to composer.json, (*16)

"evheniy/twitter-bootstrap-bundle": "1.*"

AppKernel:, (*17)

public function registerBundles()
    {
        $bundles = array(
            ...
            new Evheniy\TwitterBootstrapBundle\TwitterBootstrapBundle(),
        );
        ...

config.yml:, (*18)

#TwitterBootstrapBundle
twitter_bootstrap: ~

or

#TwitterBootstrapBundle
twitter_bootstrap:
    local_js: '@AppBundle/Resources/public/js/bootstrap.min.js'
    local_fonts_dir: '@AppBundle/Resources/public/fonts/'
    local_css: '@AppBundle/Resources/public/css/bootstrap.min.css'
    local_theme: '@AppBundle/Resources/public/css/bootstrap-theme.min.css'
    local_cdn: 'cdn.domain.com'
    version: 3.3.4
    html5: true
    async: false

And Assetic Configuration in config.yml:, (*19)

#Assetic Configuration
assetic:
    bundles: [ TwitterBootstrapBundle ]

Add this string to your layout (styles and js), (*20)

<html>
    <head>
    ...

    {%- include "TwitterBootstrapBundle:TwitterBootstrap:css.html.twig" -%}
    </head>
    <body>
    ...

    {%- include "TwitterBootstrapBundle:TwitterBootstrap:js.html.twig" -%}
    </body>
</html>

The last step, (*21)

app/console assetic:dump --env=prod --no-debug

License

This bundle is under the [MIT][3] license., (*22)

Документация на русском языке, (*23)

TwitterBootstrap, (*24)

The Versions

02/12 2015

dev-master

9999999-dev

The TwitterBootstrapBundle adds the ability to add latest Twitter Bootstrap to your application.

  Sources   Download

MIT

The Requires

 

The Development Requires

bootstrap symfony2 twitter bootstrap twitter latest

02/12 2015

1.4.0

1.4.0.0

The TwitterBootstrapBundle adds the ability to add latest Twitter Bootstrap to your application.

  Sources   Download

MIT

The Requires

 

The Development Requires

bootstrap symfony2 twitter bootstrap twitter latest

05/05 2015

1.3

1.3.0.0

The TwitterBootstrapBundle adds the ability to add latest Twitter Bootstrap to your application.

  Sources   Download

MIT

The Requires

 

bootstrap symfony2 twitter bootstrap twitter latest

19/04 2015

1.2

1.2.0.0

The TwitterBootstrapBundle adds the ability to add latest Twitter Bootstrap to your application.

  Sources   Download

MIT

The Requires

 

bootstrap symfony2 twitter bootstrap twitter latest

18/04 2015

1.1

1.1.0.0

The TwitterBootstrapBundle adds the ability to add latest Twitter Bootstrap to your application.

  Sources   Download

MIT

The Requires

 

bootstrap symfony2 twitter bootstrap twitter latest

04/04 2015

1.0

1.0.0.0

The TwitterBootstrapBundle adds the ability to add latest Twitter Bootstrap to your application.

  Sources   Download

MIT

The Requires

 

bootstrap symfony2 twitter bootstrap twitter latest