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 Modal Bundle

Bootstrap Modal Bundle Laravel Package

sideclick/bootstrap-modal-bundle

Sideclick Bootstrap Modal Bundle helps Symfony applications integrate Bootstrap modals with reusable helpers for rendering dialogs and displaying dynamic content, forms, and AJAX-loaded views in a consistent, template-friendly way.

View on GitHub
Deep Wiki
Context7

Bundle for Symfony 3.4+ that makes it easy to load pages into a Bootstrap modal window.

Frequently asked questions about Bootstrap Modal Bundle
Can I install sideclick/bootstrap-modal-bundle in a Laravel application?
No. It is a Symfony bundle built around a Bundle class, Symfony DI service definitions, and Twig helpers, so Laravel's package discovery will not register it and the Laravel container cannot load its services. Composer may resolve the download, but nothing in your Laravel app would wire it up. If you need modal helpers in Laravel, port the pattern into a Blade component plus a small JavaScript listener instead.
Does BootstrapModalBundle support Laravel 10, 11, or 12?
It does not support any Laravel version. The package targets Symfony, with a declared floor of Symfony 3.4, and ships no ServiceProvider, facade, Blade views, or Laravel-specific composer.json metadata. Laravel 10, 11, and 12 are not in scope for this codebase.
Why is there no Laravel service provider or facade in this package?
Because it was never written for Laravel. The repository contains Symfony bundle conventions only: a Bundle class, DI configuration, Twig extensions, and a Symfony controller and response pattern for emitting modal fragments. Laravel's discovery mechanism looks for a package's extra.laravel providers entry, which this package does not declare.
What is the Laravel equivalent of this Symfony Bootstrap modal bundle?
The idiomatic equivalent is a Blade component for the trigger, such as x-modal-link, a controller response strategy that returns a partial when the request is modal-scoped, and a small vanilla-JS or Alpine handler that injects the response into a Bootstrap modal shell. That is roughly 150 lines and an estimated one to three engineer-days including tests, which is cheaper than owning an unmaintained Symfony fork.
How do I load Bootstrap modal content with AJAX in Laravel?
Intercept the trigger click, fetch a same-origin route, and inject the returned HTML into the modal body. On the server, branch on a modal-scoped check such as $request->wantsModal() or a custom X-Modal-Request header, returning a bare partial for modal requests and the full page otherwise. Only point the loader at authenticated, same-origin, allow-listed routes.
How do I handle form submissions and validation errors inside a Bootstrap modal in Laravel?
Return the form partial with validation errors from the same route the modal loaded, so the modal can swap in the HTML without a full page reload. Include Laravel's CSRF token in the fragment, and handle success by closing the modal and dispatching a redirect or refresh event. This is exactly where thin wrappers tend to fall short, so plan for error re-rendering and redirect-after-success explicitly.
Does this bundle work with Bootstrap 5 and the removal of jQuery?
No. Bootstrap 5 removed jQuery and changed the modal API, so the JavaScript driver in a Symfony 3.4-era bundle would need rewriting regardless of framework. The server-side Symfony pieces do not help you on Laravel either, so a fresh implementation against Bootstrap 5 is the realistic path.
What are the security risks of AJAX-loading HTML into a Bootstrap modal?
Loading server-rendered HTML into the DOM at runtime is an XSS vector if the URL or the response is user-controlled. Restrict the loader to same-origin, authenticated, allow-listed routes, never accept arbitrary URLs from the client, and keep script-src and CSP requirements in mind. Prefer server-rendered partials over scraping and injecting full pages.
Is sideclick/bootstrap-modal-bundle still maintained, and which Symfony versions does it support?
The package has zero stars, zero dependents, and a declared Symfony 3.4 floor that reached end of life in November 2020. Nobody is exercising the code, so breakage against PHP 8.x, modern PSR-11 containers, and Symfony 5, 6, or 7 is undiscovered rather than absent. Treat it as unmaintained.
Can I use Alpine.js or HTMX instead of porting this bundle to Laravel?
Yes, and for most Laravel teams that is the better choice. Alpine.js handles the modal open, close, and fetch-and-inject flow with a few directives, while HTMX can replace most of the custom JavaScript if your team already uses it. Either way you keep ownership of roughly 150 lines you understand and can test, rather than adopting a Symfony bundle.
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.
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console
pnscripts/filament-broadquill-lite
pnscripts/laravel-sentfold-lite
vleap/mx-sdk-laravel-internal
twidpay/utils
htetmyathlaing/scout-elasticsearch-driver
artisan-toolbox/front-awesome
ls/client-assistant
users-au/laravel-client
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