krystal-sf/ux-bootstrap-5

Bootstrap 5 for Krystal Symfony Projects

Maintainers

Package info

gitlab.com/krystal-sf/ux-bootstrap-5

Homepage

Type:symfony-bundle

pkg:composer/krystal-sf/ux-bootstrap-5

Transparency log

Statistics

Installs: 1 885

Dependents: 4

Suggesters: 0

Stars: 0

1.0.x-dev 2026-08-05 23:19 UTC

This package is auto-updated.

Last update: 2026-08-05 23:19:56 UTC


README

Bootstrap 5 integration for Krystal Symfony UX Projects: Twig & Live components, form types, Knp menus styling and presets dictionaries.

PHP Version Symfony

Installation

composer require krystal-sf/ux-bootstrap-5

Enable the bundle in config/bundles.php:

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

Then import the loader once in your assets/app.js:

import "@krystal-sf/ux-bootstrap-5";

The loader exposes window.bootstrap, boots tooltips & popovers (with a DOM observer for Live Components re-renders), Bootstrap Select and Select2 (both jQuery based — jQuery is a peer dependency).

Twig Components

ComponentUsage
Bootstrap:AlertAlerts with presets (type & size)
Bootstrap:CardCards with header/footer blocks & presets
Bootstrap:ModalLive modal (visible writable LiveProp)
Bootstrap:Popover / Bootstrap:TooltipStyled popovers & tooltips
Bootstrap:ProgressBarSingle or stacked progress bars
<twig:Bootstrap:Card :presets="[ux.presets.cards.INFO]" title="Hello" />

Presets are expanded by tagged processors (Presets/) — styles map from the shared ux.presets.* dictionaries of krystal-sf/ux-common.

Form Types

Bootstrap flavored types: BootstrapSelectType, Select2Type, DateType, SwitchType, TouchIntegerType, ButtonGroupType, SubmitType / ResetType (+ Live variants). A Bootstrap 5 form theme is prepended automatically.

Knp Menus

Extensions & processors style Knp menus as Bootstrap buttons, dropdowns, navbars and collapsible sidebars (ux.presets.buttons.* presets).

Testing

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

License

MIT — see LICENSE.