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
Ajax Modals Bundle

Ajax Modals Bundle Laravel Package

jagilpe/ajax-modals-bundle

A Symfony bundle for opening Bootstrap modals via AJAX, letting controllers return modal content and handle form submissions without full page reloads. It provides reusable helpers and response classes to integrate dynamic modals into Twig templates.

View on GitHub
Deep Wiki
Context7

Symfony Bundle to generate dialogs using Bootstrap Modal

Frequently asked questions about Ajax Modals Bundle
Is jagilpe/ajax-modals-bundle compatible with Laravel?
No. It is a Symfony bundle, not a Laravel package, and it depends on Symfony bundle conventions such as a Bundle subclass, a DependencyInjection extension, service definitions under Resources/config, and a Twig extension. Laravel's service-provider and package-discovery model has no counterpart for those contracts, so it is a near-total mismatch as a Laravel dependency. The only portable assets are the Bootstrap modal markup templates and the small PHP that assembles them.
How do I install jagilpe/ajax-modals-bundle?
It is installed via Composer into a Symfony application and registered in bundles.php, with configuration handled through the bundle's Symfony extension. There is no Laravel installation path, no publishable config, and no Blade directives. Before attempting a Symfony install, inspect composer.json constraints and confirm whether a tagged release exists or whether dev-master is the only install path.
What is the best way to build AJAX modals in Laravel instead?
Use a native implementation: a Blade component such as x-modal for markup, a small controller endpoint that returns JSON or a rendered partial for dynamic bodies, and a thin Alpine or vanilla-JS controller for open and close behavior, focus trapping, aria-modal, and ESC handling. That preserves the feature intent of server-driven Bootstrap modals over AJAX without adding an unsupported Symfony dependency. The port is roughly one to two days of work, not a true integration.
Which Bootstrap versions do the bundle's modal templates target?
The repository does not clearly document the targeted Bootstrap major version. Bootstrap 3, 4, and 5 modal markup and data-attribute APIs diverged materially, so templates may render broken or inaccessible against a Bootstrap 5 design system. Confirm whether the templates are overridable without forking before considering any evaluation.
Does the bundle support Symfony 5, Symfony 6, or Symfony 7?
The realistic fit is a dated Symfony 3.x or 4.x application on Bootstrap 3, which is not a stack for new work. Twig 1/2/3 and Symfony deprecation drift make installs fragile, and there is no evidence of currently supported version constraints. Check composer.json constraints on PHP, Symfony, and Twig before relying on any version claim.
How does the bundle handle CSRF and authorization for modal content endpoints?
Any AJAX endpoint that returns modal bodies is a CSRF, authorization, and user-controlled-HTML-injection surface. There is no evidence that the bundle hardens these concerns to a production standard, and the single-maintainer status means upstream fixes are unlikely. Enforce CSRF tokens and per-record authorization in your own controller, validate input, and escape or sanitize returned HTML.
Is jagilpe/ajax-modals-bundle actively maintained and production-ready?
No. The signals are thin: about one star, zero dependents, a single maintainer, and no evidence of CI, tagged releases, or a security-disclosure path. That means zero production validation and no realistic prospect of upstream fixes when a bug appears. The composite assessment score of 0.135 matches the code-shape signals.
What are the alternatives to ajax-modals-bundle for Laravel projects?
The recommended alternative is the native Laravel approach: a Blade component for markup, a controller returning JSON or a partial for modal bodies, and Alpine or vanilla JavaScript for modal behavior. The standalone @jagilpe/ajax-modals JavaScript library is framework-agnostic and reachable via npm, but it is a separate package and still an unmaintained dependency. Avoid a Symfony-to-Laravel bundle bridge, which is legacy, partial, and a heavier liability than the feature.
Can modal content be loaded from an arbitrary URL, and is that an SSRF risk?
The repository does not clearly state whether modal content comes from a server-rendered Twig template, a JSON payload, or an arbitrary URL fetched by the frontend. An arbitrary-URL mode would be an SSRF and open-redirect surface and should not be trusted. Restrict fetches to an allowlist and prefer server-side rendering or controlled JSON endpoints.
How should I evaluate or test this bundle before adopting it?
Time-box a one-day spike in a throwaway Symfony skeleton to extract the template-and-route contract, then port the useful pieces rather than adopting the dependency. Inspect composer.json constraints on PHP, Symfony, and Twig, review the templates for Bootstrap 5 compatibility and accessibility, and test CSRF and authorization behavior on any AJAX route. The safer recommendation is do not adopt; replace it with a native Blade component and controller endpoint.
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