Integrate Bootstrap theme with Symfony 2.
IMPORTANT NOTICE: This package is still under development. Any changes will be done without prior notice to consumers of this package. Of course this code will become stable at a certain point, but for now, use at your own risk.
Includes:
- Animate.css 3.5.2
- Bootstrap 3.3.7
- Bootstrap Colorpicker 2.5.1 (Bootstrap plug-in)
- Bootstrap Datepicker 1.7.1 (Bootstrap plug-in)
- Bootstrap Daterangepicker 2.1.27 (Bootstrap plug-in)
- Bootstrap Markdown 2.10.0 (Bootstrap plug-in)
- Bootstrap Notify 3.1.3 (Bootstrap plug-in)
- Bootstrap Select 1.12.4 (Bootstrap plug-in)
- Bootstrap Slider 10.0.0 (Bootstrap plug-in)
- Bootstrap Social 5.1.1 (Bootstrap plug-in)
- Bootstrap Tagsinput 0.8.0 (Bootstrap plug-in)
- Bootstrap Timepicker 0.5.2 (Bootstrap plug-in)
- Bootstrap WYSIWYG 0.3.3 (Bootstrap plug-in)
- Font Awesome 5.0.10
- Handlebars 1.3.0 (Bootstrap WYSIWYG dependency)
- jQuery 3.2.1 (Bootstrap dependency)
- jQuery InputMask 3.3.11 (jQuery plug-in)
- jQuery Select2 4.0.5 (jQuery plug-in)
- Material Design Color Palette 1.1.0
- Material Design Hierarchical Display 1.0.1
- Material Design Iconic Font 2.2.0
- Meteocons
- Moment.js 2.20.1 (Bootstrap Daterangepicker dependency)
- SweetAlert 2.1.0
- waitMe 1.19
- WYSIHTML 0.4.15 (Bootstrap WYSIWYG dependency)
Open a command console, enter your project directory and execute the following command to download the latest stable version of this package:
$ composer require webeweb/bootstrap-bundle "^1.0"
This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation.
Then, enable the bundle by adding it to the list of registered bundles
in the app/AppKernel.php
file of your project:
public function registerBundles() {
$bundles = [
// ...
new WBW\Bundle\BootstrapBundle\BootstrapBundle(),
new WBW\Bundle\SyntaxHighlighterBundle\SyntaxHighlighterBundle(),
];
// ...
return $bundles;
}
Once the bundle is added then do:
$ php bin/console assets:install
Add the wiki routing into the app/config/routing_dev.yml
file of your project:
# ...
_bootstrap_wiki:
prefix: "/bootstrap"
resource: "@BootstrapBundle/Resources/config/routing/wiki.yml"
Open your browser at http://localhost:8000/app_dev.php/bootstrap/wiki/twig-extension/code/basic-block
{# AppBundle/Resources/views/layout.html.twig #}
{% extends "@Bootstrap/layout.html.twig" %}
{% block bootstrapFormTheme %}
{# your form theme #}
{% endblock %}
{% block bootstrapHeadFavicon %}
{# your favicons #}
{% endblock %}
{% block bootstrapHeadStyles %}
{{ parent() }}
{# your styles #}
{% endblock %}
{% block bootstrapHeadTitle %}{{ parent() }}{# your title #}{% endblock %}
{% block bootstrapBodyClasses %}{{ parent() }}{# your attributes #}{% endblock %}
{% block bootstrapBodyContent %}
{{ parent() }}
{# your content #}
{% endblock %}
{% block bootstrapBodyScripts %}
{{ parent() }}
{# your scripts #}
{% endblock %}
To test the package, is better to clone this repository on your computer. Open a command console and execute the following commands to download the latest stable version of this package:
$ mkdir bootstrap-bundle
$ cd bootstrap-bundle
$ git clone git@github.com:webeweb/bootstrap-bundle.git .
$ composer install
Once all required libraries are installed then do:
$ vendor/bin/phpunit
bootstrap-bundle is released under the LGPL License. See the bundled LICENSE file for details.