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

philetaylor/bootstrap-bundle

Bootstrap Bundle is a PHP package that integrates the Bootstrap front-end framework into your application, offering reusable templates, form themes, and view helpers for building responsive, mobile-first layouts and UI components with less boilerplate.

View on GitHub
Deep Wiki
Context7

BraincraftedBootstrapBundle integrates Bootstrap into Symfony2 by providing templates, Twig extensions, services and commands.

Frequently asked questions about Bootstrap Bundle
Does philetaylor/bootstrap-bundle work with Laravel?
No. This package is BraincraftedBootstrapBundle, a Symfony2 bundle that provides Twig templates, form themes, services, and commands. Laravel uses Blade and its own form and asset helpers, so the bundle is not a drop-in fit. For Laravel, choose a Laravel-specific Bootstrap preset or front-end package instead.
What is BraincraftedBootstrapBundle used for?
It integrates the Bootstrap front-end framework into Symfony2 applications by supplying reusable templates, Bootstrap form themes, Twig extensions, services, and console commands. The goal is to reduce boilerplate when building responsive, mobile-first layouts and UI components. It is specifically a Symfony2-era integration, not a general PHP or Laravel component.
How do I install philetaylor/bootstrap-bundle?
You install it with Composer, then register the bundle in your Symfony2 AppKernel and configure it in your application config. Because it targets Symfony2, you should check the composer.json constraints before attempting installation in any newer Symfony project. Modern Symfony versions are very unlikely to work without significant changes.
Which Symfony versions are supported by this bundle?
The package is designed for Symfony2, which reached end of life years ago. It is not intended for Symfony 3, 4, 5, 6, or later, and its Twig and form-theme APIs reflect the Symfony2 era. Always inspect the package's Composer constraints rather than assuming compatibility with a current Symfony release.
Is this package compatible with Symfony 4 or Symfony 5?
No. BraincraftedBootstrapBundle was built for Symfony2 and depends on older bundle, Twig, and form APIs that were removed or changed in later Symfony versions. Trying to install it in Symfony 4 or 5 will likely cause dependency conflicts or runtime errors. Use Symfony's built-in Bootstrap form themes or a maintained modern bundle instead.
What Twig extensions and form themes does it provide?
The bundle provides Twig helpers and Bootstrap-oriented form themes so you can render forms, labels, alerts, and other UI elements with less manual markup. These helpers assume Symfony2's Twig integration and form component behavior. If you are on Laravel, Blade and Laravel's form packages serve a similar purpose but are not compatible with this bundle.
Do I still need to include Bootstrap CSS and JavaScript separately?
Yes. The bundle focuses on Symfony2 integration, templates, form themes, and view helpers rather than replacing the Bootstrap front-end assets themselves. You should include the appropriate Bootstrap CSS and JavaScript through your Symfony2 asset pipeline or layout template. Confirm the bundle's documentation for any optional asset handling before relying on it.
Is philetaylor/bootstrap-bundle safe to use in production?
Treat it as legacy software. Symfony2 is end of life, and an old bundle may have unresolved bugs, outdated dependencies, and security concerns. It may be acceptable only inside a maintained legacy Symfony2 application where versions are pinned and the risk is understood. For new production work, choose a maintained alternative.
What are good alternatives to this bundle for Bootstrap integration?
For modern Symfony, use the framework's built-in Bootstrap form themes and standard Twig templates instead of this Symfony2 bundle. For Laravel, use Laravel's Bootstrap front-end preset or a maintained Blade component library. If you need a bundle-style integration, look for packages that explicitly support your Symfony version.
How should I test a legacy Symfony2 bundle like this?
Use PHPUnit with Symfony2's test client for functional tests and render the provided Twig templates and form themes in isolation to verify output. Add container and configuration tests to confirm services load correctly in your application kernel. Because the package is old, pin your test dependencies and avoid expecting compatibility with modern Symfony or Laravel test tooling.
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.
robertmarney/lara-hierarchial-collections
simonschaufi/rule-doc-generator
emissaoja/emissaoja
blackbricksoftware/gravityforms-civicrm-form-processor
al-rahabi/fancy-crud
jinas/dhivatar-component
mltstephane/laravel-quality
bernskiold/laravel-talentlms
bernskioldmedia/laravel-form-architect
youbar/easy-crud
c-point-labs/laravel-hostyourai
dbravoan/dbcms-admin-theme-dbcms
dbravoan/dbcms-theme-db-cyber
dbravoan/dbcms-blocks-basic
dbravoan/dbcms-module-content-audit
dbravoan/dbcms-module-ai-assistant
paygate-to/paygate-php
padosoft/askmydocs-connector-base
defstudio/supercharged-carbon
bernskioldmedia/laravel-matomo