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

mremi/bootstrap-bundle

mremi/bootstrap-bundle is a Symfony bundle that integrates Bootstrap into your applications, offering ready-to-use form themes, layout templates, and asset handling so you can build responsive, styled interfaces with minimal configuration.

View on GitHub
Deep Wiki
Context7

[DEPRECATED] A simple way to add the Bootstrap framework in a Symfony project

Frequently asked questions about Bootstrap Bundle
Does mremi/bootstrap-bundle work with Laravel?
No. mremi/bootstrap-bundle is a Symfony bundle distributed over Composer, and it has no service provider, no Blade integration, no publishable config, and no kernel boot path in Laravel. Even if Composer resolves it cleanly, no code path in a Laravel application would ever execute it. This is a framework category mismatch rather than a version-pinning problem, so there is nothing to integrate or configure. Laravel teams should treat it as out of scope.
Is mremi/bootstrap-bundle still maintained or is it deprecated?
It carries a declared end-of-life marker upstream, and the repository is marked as deprecated. That means there is no security-response channel: any CVE landing in the bundled Bootstrap or its dependency tree would be absorbed by whoever installs it. Adoption signal is effectively zero, with roughly one star, no dependents, and an extremely low ecosystem confidence score. Treat the deprecation notice as a hard stop rather than a soft warning.
How do I add Bootstrap to a Laravel app instead of using this bundle?
Install Bootstrap as an npm dependency with npm install bootstrap @popperjs/core, then import it in resources/js/app.js and resources/sass/app.scss and run npm run build through Vite. If build tooling is out of scope, a single SRI-hashed CDN link tag covers the same ground. Either route reuses tooling your team already operates and takes roughly one engineer-day at most. That is the entire counterfactual to adopting this bundle.
What does mremi/bootstrap-bundle actually provide?
It integrates the Bootstrap front-end framework into Symfony applications and ships ready-made Twig form themes that render Symfony form types with Bootstrap-compatible markup. It also offers horizontal and vertical layouts with configurable grid sizes, plus Twig blocks and helpers for alerts, buttons, and panels. The stated goal is removing hand-written form markup and keeping layouts consistent across a project. All of that value is specific to Symfony's Twig form rendering system.
Can Composer require mremi/bootstrap-bundle in a Laravel project anyway?
Composer may resolve and install it, but installation is not the same as usefulness, since Laravel never boots the bundle. The dated Symfony and PHP constraints are also likely to conflict with PHP 8.2 or 8.3 and modern dependency resolution, producing install failures that can block unrelated CI work. You would take on permanent dependency-graph risk for zero runtime benefit. Avoid adding it to a Laravel composer.json even temporarily.
What replaces the bundle's Twig form themes and layout helpers in Laravel?
Blade components and partials substitute for the Twig form themes, and Laravel's own paginator views cover the pagination helpers. Alerts, buttons, and panels become small Blade components or plain Bootstrap utility classes in your templates. There is no one-to-one mapping onto a Laravel primitive, so the work is substitution rather than integration. In practice this is a few templates, not a migration project.
Which Symfony and PHP versions does mremi/bootstrap-bundle support?
The bundle is from the Bootstrap 3 and 4 era and its Composer constraints reflect that period, which puts it well behind current Symfony and PHP releases. The deprecated status means no compatibility work is happening upstream, so newer PHP runtimes are unlikely to be supported. Check the tag's composer.json for exact constraints before relying on any version claim. Expect conflicts on PHP 8.2 and above.
Does mremi/bootstrap-bundle ship an outdated Bootstrap with known XSS problems?
Bundles of this vintage typically ship Bootstrap 3 or 4-era JavaScript, which has known unpatched tooltip and popover cross-site scripting classes of vulnerability. Because the package is deprecated, no upstream patch will arrive for those issues. That is a live end-user exposure rather than a theoretical one, and it lands on whoever owns client-side asset CVE response. Confirm nobody does, and the risk argument settles itself.
Is mremi/bootstrap-bundle safe to leave in a legacy Symfony application?
It can be tolerated short-term only if that application is explicitly owned, its Symfony and PHP versions are known, and removal already sits on the upgrade backlog. Leaving it in place means permanent ownership of an unpatched, undocumented, single-maintainer surface inside your SBOM. Check first whether anything in your dependency graph pulls it in transitively, though zero dependents suggests nothing does. If a legacy app does depend on it, the right move is planning the exit, not approving new use.
What are the best alternatives to mremi/bootstrap-bundle for Laravel teams?
Use the native npm and Vite pipeline to pull in Bootstrap and Popper, or reference a CDN build with an integrity hash when build tooling is out of scope. Style forms and pagination with Blade components, and lean on Laravel's built-in paginator views instead of porting Twig helpers. Any of these costs under a day of engineering and avoids a deprecated, single-maintainer dependency. For Laravel, the build-versus-buy answer is unusually one-sided.
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.
elsayed85/laravel-api-exceptions
ouhssini/laravel-demo-mode
daworks/ncloud-outbound-mailer-driver
gp247/cms
ignibyte/aic-gates
nexa-merchant/blog
novasa/laravel-language-center
opencage/geocode
adolfoholzer/parameters
livenetworks/ln-starter
shitoudev/permissionmanager
johannesclimacus/laravel-tui
hocvt/seotools
vitalybaev/sypexgeo
amphibee/themosis-ignition
gito-me/fast-excel
frankyso/laravel-ipaymu
geolize-studio/laravel-chile
boomerangui/chat
cgv/localized-resource