Download the PHP package aymericcucherousset/ux-sortable without Composer
On this page you can find all versions of the php package aymericcucherousset/ux-sortable. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download aymericcucherousset/ux-sortable
More information about aymericcucherousset/ux-sortable
Files in aymericcucherousset/ux-sortable
Package ux-sortable
Short Description Sortable integration for Symfony
License MIT
Informations about the package ux-sortable
Symfony UX Sortable
A lightweight Symfony UX wrapper around SortableJS using AssetMapper & Stimulus.
Symfony UX Sortable integrates SortableJS into Symfony applications using:
- AssetMapper (no Webpack/Vite required)
- Stimulus
- Twig helper
- Importmap
Features
- Drag & drop reordering
- Fully configurable SortableJS options
- Clean Twig API
- Zero build step
Compatible with Symfony 7.4 / 8+
Installation
If you are using Symfony Flex, the bundle is auto-registered.
Then install JavaScript dependencies:
Basic Usage
Twig
That’s it. Drag & drop is now enabled.
Passing Options
You can pass any SortableJS option:
Options are automatically encoded as a valid JSON object.
How It Works
Registers a Stimulus controller Uses AssetMapper to expose JS assets Wraps SortableJS Generates correct Stimulus data attributes via Twig Generated HTML example:
Requirements
- PHP 8.3+
- Symfony 7.4+ or 8+
- symfony/stimulus-bundle
- symfony/asset-mapper
Advanced Usage
You can still access the controller manually if needed:
Roadmap
- [ ] Emit custom events
- [x] Integration with Symfony UX LiveComponent
- [ ] Nested sortable support
- [x] TypeScript support
- [ ] Auto persistence helper
Versioning
Current version: v0.0.1
This is an early release. API may evolve before 1.0.
Contributing
Issues and pull requests are welcome.
All versions of ux-sortable with dependencies
symfony/config Version ^7.0|^8.0
symfony/dependency-injection Version ^7.0|^8.0
symfony/stimulus-bundle Version ^2.22
twig/twig Version ^3.8