krystal-sf/ux-bootbox

Bootbox Modals for Krystal Symfony Projects

Maintainers

Package info

gitlab.com/krystal-sf/ux-bootbox

Homepage

Type:symfony-bundle

pkg:composer/krystal-sf/ux-bootbox

Transparency log

Statistics

Installs: 1 861

Dependents: 2

Suggesters: 1

Stars: 0

1.0.x-dev 2026-08-04 23:01 UTC

This package is auto-updated.

Last update: 2026-08-04 23:01:37 UTC


README

Bootbox modals for Krystal Symfony UX Projects: confirmations, loading, progress and prompt dialogs driven by Live Components events.

PHP Version Symfony

Installation

composer require krystal-sf/ux-bootbox

Enable the bundle in config/bundles.php:

return [
    // ...
    Ksf\Plugins\Bootbox\KsfBootboxBundle::class => ['all' => true],
];

Usage

The Bootbox:Controller Live Component is registered as a Tagged Block on the standard HIDDEN_BOTTOM location — nothing to add in your templates.

Trigger dialogs from menus via the MenuFactory helpers of krystal-sf/ux-menus:

$this->factory->bootboxConfirmedController(
    MyAction::class,
    arguments: array("id" => 27),
    autoload: "bootbox.confirm",
    translationDomain: "MyDomain",
);

Or emit the events directly (all names in BootboxEvents dictionary):

  • BootboxEvents::CONFIRM — confirmation dialog executing an action
  • BootboxEvents::LOADING — blocking loading dialog
  • BootboxEvents::PROGRESS — progress dialog with custom buttons
  • BootboxEvents::CLOSE — close the current dialog

Static helpers in BootboxEventArgs build the menus options (createConfirm, createConfirmEvent, confirmArgs, progressArgs).

Testing

make up          # boot the docker stack
make phpunit     # run the test suite
make quality     # lint + style + phpstan

License

MIT — see LICENSE.