2017 © Pedro Peláez
 

library bootstrap3bundle

Symfony Bundle to integrate Bootstrap 3 without Assetic, Less, NPM

image

markei/bootstrap3bundle

Symfony Bundle to integrate Bootstrap 3 without Assetic, Less, NPM

  • Wednesday, May 4, 2016
  • by markei
  • Repository
  • 1 Watchers
  • 0 Stars
  • 60 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

README

About this bundle

This bundle provides an easy and basic way to add Bootstrap 3 to your Symfony project. It does not require Assetic, NPM, Sass of LESS., (*1)

Installation

1 Add to composer.json to the require key, (*2)

``` shell $composer require markei/bootstrap3bundle, (*3)


**2** Register the bundle in ``app/AppKernel.php`` ``` php $bundles = array( // ... new Markei\Bootstrap3Bundle\MarkeiBootstrap3Bundle(), );

3 Run the following command to copy the files (for Symfony 2.8 users use app/console instead of bin/console), (*4)

``` shell $php bin/console markei:bootstrap3:copy, (*5)


**4** Use it in your code ``` html <link href="/css/bootstrap.min.css" rel="stylesheet"> ... <script src="/js/jquery.min.js"></script> <script src="/js/bootstrap.min.js"></script>

Configuration

The following options can be controlled via app/config/config.yml, (*6)

``` yml markei_bootstrap3: src_bootstrap_css: '%kernel.root_dir%/../vendor/twbs/bootstrap/dist/css/bootstrap.min.css' src_bootstrap_js: '%kernel.root_dir%/../vendor/twbs/bootstrap/dist/js/bootstrap.min.js' src_bootstrap_fonts: '%kernel.root_dir%/../vendor/twbs/bootstrap/fonts' src_jquery_js: '%kernel.root_dir%/../vendor/jquery/jquery.min.js' dst_bootstrap_css: %kernel.root_dir%/../web/css/bootstrap.min.css dst_bootstrap_js: %kernel.root_dir%/../web/js/bootstrap.min.js dst_bootstrap_fonts: %kernel.root_dir%/../web/fonts dst_jquery_js: %kernel.root_dir%/../web/js/jquery.min.js, (*7)


Automatic copy on update and install ------------------------------------ Add the copy job to the scripts section of your composer.json
"scripts": {
    "post-install-cmd": [
        ...
        "php bin/console markei:bootstrap3:copy"
    ],
    "post-update-cmd": [
        ...
        "php bin/console markei:bootstrap3:copy"
    ]
},

```, (*8)

The Versions

04/05 2016

dev-master

9999999-dev

Symfony Bundle to integrate Bootstrap 3 without Assetic, Less, NPM

  Sources   Download

MIT

The Requires

 

04/05 2016

v1.1.2

1.1.2.0

Symfony Bundle to integrate Bootstrap 3 without Assetic, Less, NPM

  Sources   Download

MIT

The Requires

 

18/03 2016

v1.1.1

1.1.1.0

Symfony Bundle to integrate Bootstrap 3 without Assetic, Less, NPM

  Sources   Download

MIT

The Requires

 

18/03 2016

v1.1.0

1.1.0.0

Symfony Bundle to integrate Bootstrap 3 without Assetic, Less, NPM

  Sources   Download

MIT

The Requires

 

18/03 2016

v1.0.2

1.0.2.0

Symfony Bundle to integrate Bootstrap 3 without Assetic, Less, NPM

  Sources   Download

MIT

The Requires

 

15/02 2016

v1.0.1

1.0.1.0

Symfony Bundle to integrate Bootstrap 3 without Assetic, Less, NPM

  Sources   Download

MIT

The Requires

 

11/02 2016

v1.0.0

1.0.0.0

Symfony Bundle to integrate Bootstrap 3 without Assetic, Less, NPM

  Sources   Download

MIT

The Requires