Download the PHP package pinano/bootstrap3-bundle without Composer
On this page you can find all versions of the php package pinano/bootstrap3-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download pinano/bootstrap3-bundle
More information about pinano/bootstrap3-bundle
Files in pinano/bootstrap3-bundle
Package bootstrap3-bundle
Short Description Symfony2 bundle for wrapping Twitter Bootstrap 3
License MIT
Homepage http://github.com/pinano/bootstrap3-bundle
Informations about the package bootstrap3-bundle
Twitter Bootstrap 3 Bundle for Symfony2
Current Version
Bootstrap 3.3.5
Installation
Add bundle to your composer.json file
Or, if you prefer, choose a specific version
Add bundle to your application kernel
Download the bundle using Composer
Install assets
Given your server's public directory is named "web", install the public vendor resources
Optionally, use the --symlink attribute to create links rather than copies of the resources
Usage
Once all the resources are in place, if you want to use the Bootstrap 3 javascript features (modals, dropdowns, etc.) you can edit any of your twig views or layouts to include the Bootstrap3 javascript files. If you don't want to use any of these features you can skip this step. Please refer to the Bootstrap 3 documentation to see what features are available.
Note: Bootstrap 3 javascript resources require that you have previously loaded jQuery library.
Then you will want to load the css resources to take advantage of the grid and all the responsive utilities.
Note: The bootstrap-theme.css file is optional and is only intended to make Bootstrap 3 look nice out-of-the-box..
If you want to create your own SCSS mix-ins or variables, you should import Bootstrap 3 SCSS files instead of the CSSs and create a css output using any of the SCSS filters available for assetic:
Note: See https://github.com/kriswallsmith/assetic/issues/53 for known limitations of assetic with CSS referencing.
I usually follow a simple inheritance schema when it comes to designing twig templates. That is, I have an app/Resources/views/base.html.twig file that I use as a site-wide template. Then, inside every bundle I have my own Resources/views/layout.html.twig file that extends the base template. Depending on the kind of application I'm designing I can place the Bootstrap stuff in the site-wide or the bundle-wide template. Then every view of a given bundle will extend the corresponding bundle layout.html.twig file, which in turn extends the site-wide template.
The folks at Sensio Labs have already covered this approach and you can check it in their documentation.
Licenses
I do not own Bootstrap 3 files at all, I'm just providing a Bundle package to easy-install them all. Refer to the source code of the included files from Bootstrap 3 for license information.