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

v0.1.6 2025-12-18 19:00 UTC

This package is auto-updated.

Last update: 2025-12-18 19:05:42 UTC


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