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

rhapsody-project/bootstrap-bundle

Rhapsody Bootstrap Bundle brings Bootstrap into Symfony projects with streamlined asset integration, Twig helpers, and sensible configuration defaults, making it easier to build responsive, mobile-first interfaces with less boilerplate.

View on GitHub
Deep Wiki
Context7

At a glance

Frequently asked questions about Bootstrap Bundle
What is the Rhapsody Bootstrap Bundle and what does it actually do?
It is a Symfony bundle that integrates the Bootstrap frontend framework into Symfony applications. It ships ready-to-use Twig layouts with responsive grid and navbar blocks, Bootstrap-styled Twig form themes, and helpers for alerts, modals, and icons. The goal is less template boilerplate and consistent markup across a project. It follows standard Symfony bundle conventions and composes with the Form and Asset components.
Is rhapsody-project/bootstrap-bundle compatible with Laravel?
No. Despite being installable via Composer, this is a Symfony bundle built around Twig, the Symfony Form component, and Symfony's Asset component, not a Laravel package with a service provider and Blade views. There is no extra.laravel.providers entry, no publishable Blade templates, and no Laravel configuration file described anywhere in the package. Laravel teams should treat it as out of scope and use a Blade or Tailwind-based alternative instead.
How do I install and register the Rhapsody Bootstrap Bundle in a Symfony app?
Install it with composer require rhapsody-project/bootstrap-bundle, then enable it in config/bundles.php, which is standard for bundles that are not part of Symfony Flex recipes. After registration you configure the Bootstrap version and asset paths, then reference the bundle's base layout from your own templates. Run a cache clear and render one form to confirm the form themes are picked up before rolling it out application-wide.
Which Bootstrap version does this bundle ship, and is Bootstrap 3 still safe to use?
The only signal is the 3.2.0 release note, which reads simply Bootstrap 3.2.0, so it is unclear whether that is a bundled frontend asset bump or a mis-titled release. Bootstrap 3 has been end-of-life since 2019 and carries known, unpatched XSS vectors in tooltip, popover, and data-target handling. Treat the supported Bootstrap version as unconfirmed until you inspect the tag contents and ask the maintainer directly. If the bundle genuinely vendors Bootstrap 3.2.0, you are inheriting an unpatched frontend dependency.
Does this bundle require jQuery, and will it collide with my existing scripts?
Bootstrap 3's JavaScript plugins require jQuery, so if the bundle ships those assets you inherit a jQuery global as well. That is a real risk in applications that already load jQuery at a different version or rely on vanilla modules. Nothing in the release note confirms whether scripts are bundled or loaded from a CDN. Audit the rendered scripts and verify the jQuery version before integrating.
How do I configure CDN assets versus locally compiled CSS and JS?
The bundle's configuration supports either CDN-hosted or locally compiled Bootstrap CSS and JS assets, which you select through the bundle config. If you use local assets, publish them deliberately and avoid re-running vendor:publish on every upgrade, because that can silently overwrite local customisations. Modern Symfony projects often build assets with Webpack Encore or AssetMapper, so confirm the bundle does not hardcode link and script tags you cannot override.
What Twig form themes and layout blocks does the bundle provide?
It provides Twig form themes that render Bootstrap-styled fields, buttons, and validation states, so form_row output matches Bootstrap markup without hand-written overrides. Base layout templates include responsive grid and navbar blocks, plus helpers for alerts, modals, and icon rendering. You can extend the base layout in your own templates rather than adopting it wholesale. This keeps the presentation layer opt-in per view instead of globally bootstrapped.
Which Symfony and PHP versions are supported by this bundle?
The supported matrix is not stated in the release note, so check the composer.json constraints for symfony/framework-bundle and PHP before committing. There is also no published upgrade guide from 3.1.x to 3.2.0. Test installation in a throwaway Symfony skeleton on the oldest and newest versions you support to confirm compatibility in practice.
How should I evaluate this bundle before adopting it in production?
Install it in a disposable Symfony application on your oldest and newest supported versions, then verify bundle registration, config:cache, and cache warmup all succeed. Render a representative form and a layout page, inspect the emitted markup, and check for inline styles or inline event handlers that would break a Content Security Policy. Confirm assets land where you expect and that an upgrade will not clobber your customisations. Because the 3.2.0 release note has no changelog or diff, treat all fit conclusions as provisional until you read the tag.
What are the alternatives to this bundle for Bootstrap styling in Symfony?
Symfony's Twig Bridge already ships Bootstrap form themes, including bootstrap_5_layout.html.twig, so you can get Bootstrap-styled forms with no extra bundle at all. Combine that with Webpack Encore or AssetMapper for your compiled Bootstrap 5 assets and write your own minimal layout templates. Symfony UX components cover interactive pieces such as modals without pulling in jQuery. That route gives you a maintained, non-EOL Bootstrap version and full control over the 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