Integrate Bootstrap theme with Symfony 4 and more.
bootstrap-bundle
eases the use of Bootstrap to display components in your
Symfony application by providing Twig extensions and PHP objects to do the heavy
lifting. The bundle include the excellent framework Bootstrap
and some useful plugins.
Includes:
- Bootstrap 3.4.1
- Bootstrap 4.6.2
- Bootstrap 5.3.0
- Bootstrap Colorpicker 2.5.3 (Bootstrap plug-in)
- Bootstrap Datepicker 1.9.0 (Bootstrap plug-in)
- Bootstrap Daterangepicker 2.1.27 (Bootstrap plug-in)
- Bootstrap Icons 1.9.1
- 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)
- Handlebars 1.3.0 (Bootstrap WYSIWYG dependency)
- Moment.js 2.20.1 (Bootstrap Daterangepicker dependency)
- Popper.js 1.15.0 (Bootstrap dependency)
- Summernote 0.8.20 (Bootstrap plug-in)
- WYSIHTML 0.4.15 (Bootstrap WYSIWYG dependency)
Provides:
- Button Twig extension
- Code Twig extension
- Grid Twig extension (only for Bootstrap 3)
- Typography Twig extension
- Alert Twig extension
- Badge Twig extension
- Button group Twig extension
- Glyphicon Twig extension
- Label Twig extension
- Progress bar Twig extension
If you like this package, pay me a beer (or a coffee)
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
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\WBWBootstrapBundle(),
new WBW\Bundle\CoreBundle\WBWCoreBundle(),
];
// ...
return $bundles;
}
Once the bundle is added then do:
$ php bin/console wbw:core:unzip-assets
$ php bin/console assets:install
Read the documentation.
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:
$ git clone https://github.com/webeweb/bootstrap-bundle.git
$ cd bootstrap-bundle
$ composer install
Once all required libraries are installed then do:
$ vendor/bin/phpunit
bootstrap-bundle
is released under the MIT License. See the bundled LICENSE
file for details.