Weave Code
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

alexandermatveev/bootstrap-bundle

View on GitHub
Deep Wiki
Context7

Bootstrap Bundle for Symfony2+

Frequently asked questions about Bootstrap Bundle
Can I use this bundle in Laravel instead of Symfony? If so, how?
This bundle is designed for Symfony2+ and won’t integrate natively with Laravel. For Laravel, manually include Bootstrap 3.x via CDN or local files, or use a modern alternative like Bootstrap 5 with Laravel Mix/Webpack. The bundle’s Symfony-specific asset pipeline (e.g., `assets:install`) won’t work without adaptation.
What Laravel versions does this bundle support?
This bundle is **not officially supported** in Laravel—it’s built for Symfony2+. However, if you’re using Laravel with Symfony components (e.g., via Lumen or legacy bridges), you’d need to manually register the bundle in your `AppKernel` equivalent and handle assets separately. For modern Laravel, avoid this bundle entirely.
How do I install this in a Symfony 4/5/6 project without `assets:install` errors?
Symfony 4+ deprecates `assets:install` in favor of Webpack Encore. To use this bundle, you’d need to fork it and replace its asset pipeline logic with Webpack configurations, or manually copy Bootstrap 3.x files to `public/` and link them. Alternatively, drop the bundle and use Bootstrap 5 with Laravel Mix or Vite.
Are there security risks using Bootstrap 3.3.6 in production?
Yes. Bootstrap 3.x (released in 2015) lacks critical security patches for vulnerabilities like XSS in dropdowns or modal components. The bundle’s MIT license doesn’t address this—you’d need to manually backport fixes or migrate to Bootstrap 5.x, which receives active security updates. Avoid this for new projects.
Does this bundle support Bootstrap 4 or 5 components (e.g., flexbox, utility classes)?
No. This bundle is hardcoded to Bootstrap 3.3.6 and doesn’t include modern features like flexbox utilities, grid improvements, or responsive utilities from Bootstrap 4/5. If you need these, use a CDN or self-host Bootstrap 5 and configure it via Laravel Mix/Webpack.
How do I customize SASS/Less variables or override Bootstrap styles?
The bundle doesn’t provide built-in SASS/Less support. To customize styles, manually override the CSS in your project or extract Bootstrap 3.x SASS files from the source and compile them separately. For Symfony 2/3, use the bundle’s asset paths to link your custom builds. In Symfony 4+, this approach won’t work without Webpack integration.
What’s the best alternative for Laravel if I need Bootstrap integration?
For Laravel, use **Bootstrap 5** with Laravel Mix or Vite for asset compilation. Packages like `laravel-mix` or `vite-laravel` simplify integration. Avoid this bundle—it’s outdated and Symfony-specific. If you’re tied to Bootstrap 3.x for legacy reasons, use the official CDN or self-host the files in `public/css/js/`.
Will this bundle work with PHP 8.x or Laravel 9+?
No. This bundle requires **PHP 5.3+** and Symfony 2.1+, which are incompatible with PHP 8.x or Laravel 9+. The bundle’s abandoned state (last update: 2018) means no PHP 8+ or Symfony 5/6 compatibility fixes will be released. Migrate to Bootstrap 5 + Laravel Mix/Vite for modern stacks.
How do I test this bundle in a Laravel/Symfony hybrid project?
If testing in Symfony 2/3, follow the README: add the bundle to `composer.json`, register it in `AppKernel.php`, and run `assets:install`. For Laravel, mock the bundle’s functionality by manually including Bootstrap 3.x assets and testing component rendering (e.g., modals, dropdowns). Note: This is a temporary workaround—plan to migrate.
What maintenance efforts are required for long-term use?
This bundle is **abandoned** with no updates since 2018. Expect to manually patch security vulnerabilities, backport Bootstrap 3.x fixes, and handle asset pipeline changes in Symfony 4+. Document these efforts internally. For sustainable projects, replace it with Bootstrap 5 + Laravel Mix/Vite to eliminate maintenance overhead.
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.
comsave/common
alecsammon/php-raml-parser
chrome-php/wrench
lendable/composer-license-checker
typhoon/reflection
mesilov/moneyphp-percentage
mike42/gfx-php
bookdown/themes
aura/view
aura/html
aura/cli
povils/phpmnd
nayjest/manipulator
omnipay/tests
psr-mock/http-message-implementation
psr-mock/http-factory-implementation
psr-mock/http-client-implementation
voku/email-check
voku/urlify
rtheunissen/guzzle-log-middleware