elnur/bootstrap-bundle
ElnurBootstrapBundle adds unobtrusive Bootstrap 3 support to Symfony forms, letting you choose default, horizontal, inline, or navbar layouts, set button contexts, use input group addons, convert labels to placeholders, and render flash messages.
Architecture fit
elnur/bootstrap-bundle is a Symfony bundle, not a Laravel package. The README's install path is AppKernel::registerBundles() and its extension points are Twig form themes and Symfony Form type extensions. There is no service provider, no config/bootstrap.php publish step, no Blade directives, and no facade.layout (form-level) and context (button-level) options. It deliberately does not ship Bootstrap CSS/JS — the README is explicit that asset installation is left to the consumer (Composer or Bower).Integration feasibility
$builder->add('submit', 'submit', array(...)) uses string form type names, which Symfony deprecated in 2.8 and removed in 3.0+ in favor of FQCNs. This is strong evidence the bundle targets Symfony 2.x and will not boot cleanly on Symfony 4/5/6/7..has-error → .invalid-feedback/.is-invalid, .help-block removed, .form-group semantics changed), and Bootstrap 5 dropped jQuery entirely. Even a successful integration today would be building on a dead frontend baseline.Technical risk — rated high
~0.1 indicates a pre-1.0 package with no stability promise. 10 stars and 0 dependents means no community validation, no downstream bug reports, and no expectation of upstream fixes.Key questions to resolve before any commitment
layout option API"? If the former, native form themes or Blade components are cheaper.composer.json?Stack fit
layout concept, or (c) if Symfony Form semantics are genuinely required, use symfony/form standalone with a documented Twig bridge — but treat that as a separate architectural decision, not a package install.AppKernel, and optionally set the form theme globally in config.yml under twig.form.resources.Migration path
templates/form/bootstrap_3_layout.html.twig (or the Symfony-equivalent path) and port the button/layout option handling into a local form type extension. This eliminates a third-party dependency while preserving the exact markup contract.0.1.x, not ~0.1) and vendor-lock, since a pre-1.0 package can break on any minor release.Compatibility
composer.json; Twig major version; presence of string-based form type usage in the templates/extensions.Sequencing
layout: 'horizontal', diff the emitted markup against the design system.composer.lock guard, and file a fork-ready note in the runbook.Maintenance
Support
Scaling
Failure modes
framework-bundle to an old major, blocking unrelated dependency upgrades.twig.form.resources, ordering matters and the bundle's override may silently win or lose depending on registration order.Ramp-up
layout and context options.AppKernel, bundles, form themes) is the tell, and it is not signposted anywhere in the package description.How can I help you explore Laravel packages today?