alexain / ux-gridjs
Symfony UX-style integration for Grid.js with AssetMapper + Stimulus (Turbo optional).
Installs: 10
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:symfony-bundle
pkg:composer/alexain/ux-gridjs
Requires
- php: >=8.2
- symfony/framework-bundle: ^7.0 || ^8.0
- symfony/twig-bundle: ^7.0 || ^8.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.92
Suggests
- symfony/asset-mapper: Required to load the Stimulus controller via importmap
- symfony/stimulus-bundle: Required to enable the Grid.js Stimulus controller
README
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.
Requirements
- PHP >= 8.2
- Symfony 7.x/8.0
- symfony/asset-mapper (AssetMapper / importmap)
- symfony/stimulus-bundle (Stimulus)
Turbo Drive is optional
Installation
Install the bundle:
composer require alexain/ux-gridjs
Install 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.
Usage:
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).
Credits & Licenses
Grid.js: MIT license
© 2025 - Alessandro Capano