Symfony bundle to integrate Grid.js tables with Symfony 7.x/8.x using AssetMapper + Stimulus. Turbo Drive is optional.
Grid.js is MIT-licensed. See Credits section.
- PHP >= 8.2
- Symfony 7.x/8.0
- symfony/asset-mapper (AssetMapper / importmap)
- symfony/stimulus-bundle (Stimulus)
Turbo Drive is optional
Install the bundle:
composer require alexain/ux-gridjsInstall Grid.js via importmap in the host Symfony app:
php bin/console importmap:require gridjs php bin/console importmap:install
importmap:require is the recommended way to add third-party JS packages with AssetMapper. Symfony
Register/use the Stimulus controller grid_controller.js shipped by this bundle.
Twig rendering:
{{ gridjs_render(grid) }}Where grid is the array produced by GridPresenter::toArray().
Backend-driven toolbar
Configure toolbar buttons from Symfony (no Twig overrides).
Grid.js: MIT license
© 2025 - Alessandro Capano