Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Bootstrap Bundle

Bootstrap Bundle Laravel Package

hackzilla/bootstrap-bundle

Hackzilla BootstrapBundle is a Symfony bundle that helps integrate the Bootstrap CSS framework into Symfony applications, offering form themes, Twig helpers, and layout utilities to streamline responsive, styled interfaces.

View on GitHub
Deep Wiki
Context7

Bootstrap Helper Bundle for Symfony2

Frequently asked questions about Bootstrap Bundle
What does hackzilla/bootstrap-bundle actually do?
It is a Symfony bundle that wires Bootstrap front-end assets and helpers into your application. It ships Twig templates and form themes for common Bootstrap components, preconfigured CSS and JavaScript asset handling, and sensible defaults you can override. It is aimed at small Symfony projects and prototypes where you want styled, responsive views without assembling everything by hand.
How do I install hackzilla/bootstrap-bundle with Composer?
Run composer require hackzilla/bootstrap-bundle to pull the package into your project. Then register the bundle in your kernel, which means adding it to AppKernel.php on older Symfony versions or to config/bundles.php on Symfony 4 and later. After that, confirm the bundle is enabled and clear your cache so the Twig templates and form themes are picked up.
Is hackzilla/bootstrap-bundle a Laravel package?
No. It is a Symfony bundle and will not work in a Laravel application, since it relies on Symfony's bundle system, Twig integration and form component. If you are building with Laravel you should look at Blade-friendly Bootstrap integrations or simply include Bootstrap through npm or a CDN. Using this package in Laravel would require rewriting its service and template wiring.
Which Symfony versions does this bundle support?
Support depends on the composer.json constraints published with the package, and the repository dates from the Symfony 2 and 3 era. Check the require block and the latest tagged release before adding it to a modern Symfony 5, 6 or 7 project. If the constraints are outdated, you may need to fork the bundle or replicate its form themes manually.
Which version of Bootstrap does it include?
The bundled assets reflect whatever Bootstrap release was current when the package was last updated, which is likely Bootstrap 3 rather than Bootstrap 5. Verify the CSS and JavaScript files in the repository before relying on newer components such as utilities-as-API or the updated grid. You can usually keep the Twig helpers while loading a newer Bootstrap build from your own asset pipeline.
How do I configure the bundle in my Symfony application?
Configuration typically goes in app/config/config.yml or config/packages under a bundle-specific key, following the options documented in the README. The defaults are designed to work without any configuration, so you only need to touch settings when overriding paths, templates or asset locations. Always clear the Symfony cache after changing the configuration.
How can I override the bundle's Twig templates and form themes?
Symfony's standard template override mechanism applies, so placing a file at templates/bundles/HackzillaBootstrapBundle/... or the older app/Resources equivalent takes precedence over the bundle copy. For form themes, set the path you want in the twig.form_themes configuration instead of editing vendor files. This keeps your customisations upgrade-safe when the package is updated.
Does it work with Webpack Encore or does it require Assetic?
The bundle's preconfigured asset handling is built around the older Symfony asset and Assetic approach. In a modern Encore or Vite setup you can still use the Twig helpers and form themes while importing Bootstrap from npm in your own build. That combination gives you current Bootstrap versions without fighting the bundle's asset configuration.
How do I apply Bootstrap styling to Symfony forms with this bundle?
Add the bundle's Bootstrap form theme to twig.form_themes in your configuration, or reference it directly with the form_theme Twig tag in an individual template. Once active, rendered form rows, labels, help text and validation errors pick up the appropriate Bootstrap classes. Customise further by extending the theme rather than editing it in place.
Is hackzilla/bootstrap-bundle still maintained and safe for production?
Check the repository's commit history, open issues and last release date before depending on it, as the project has seen little recent activity. The bundle is small and does not introduce database or security-sensitive runtime code, so the main risk is stale Bootstrap assets and Symfony version constraints. For long-lived production applications, consider maintaining a fork or moving to a supported form theme and a modern asset pipeline.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
vento/laravel-airbrake
wfeller/laravel-batch
maco-studios/mage-os-installer
busarm/armie
siberfx/laravel-logger
kfteam1991/dcat-admin
dashed/dashed-laposta
dashed/dashed-ecommerce-montaportal
dashed/dashed-ecommerce-etsy
neohq/string-blade-compiler
log1x/acf-composer
cgv/localized-resource
noith/settings
kda/laravel-package
kda/filament-dynamic-navigation
bypersoft/signbox
pairus/product-data
fayne/laravel-filament-cms-core
nodisrupt/laravel-agent
sierratecnologia/media-manager