Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Ux Collection Laravel Package

arkounay/ux-collection

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Enhancing User Experience for Dynamic Forms:

    • Enable drag-and-drop, reordering, and dynamic addition/deletion of form entries (e.g., multi-step configurations, nested lists, or inventory management).
    • Replace clunky manual input fields with intuitive, interactive UIs (e.g., cart items, survey questions, or product bundles).
  • Roadmap Prioritization:

    • Build vs. Buy: Avoid reinventing collection UX logic (drag-and-drop, validation, and client-side updates) by leveraging this package instead of custom JavaScript.
    • Feature Expansion: Use UxTabbedCollectionType or UxHorizontalCollectionType for multi-tab interfaces (e.g., step-by-step forms) or horizontal scrolling (e.g., gallery configurations).
    • Accessibility/Internationalization: Supports translations (Italian, Indonesian) and can be extended for localized UIs without rewriting core logic.
  • Use Cases:

    • E-commerce: Dynamic product bundles, customizable kits, or bulk discounts.
    • CRM/HR Tools: Employee skill sets, project task lists, or nested permissions.
    • Admin Panels: EasyAdmin/QAG integration for CRUD operations with sortable lists (e.g., menu items, content blocks).
    • Survey/Quiz Builders: Reorderable question banks or conditional logic groups.
  • Technical Debt Reduction:

    • Replace legacy CollectionType with Symfony UX-compatible forms, reducing maintenance for dynamic form handling.
    • Event-driven extensions (e.g., ux-collection:change) enable real-time UI updates (e.g., recalculating totals) without custom Stimulus controllers.

When to Consider This Package

  • Adopt When:

    • Your app uses Symfony 6+ and Symfony UX (StimulusBundle required).
    • You need client-side interactivity for collections (drag-and-drop, reordering) without heavy custom JS.
    • Forms require dynamic validation (e.g., min/max items, nested dependencies) that Symfony UX can handle.
    • You’re using EasyAdmin/QAG and want out-of-the-box collection UX for admin panels.
    • Your team prioritizes developer velocity over custom UI components.
  • Look Elsewhere If:

    • You’re not using Symfony UX/Stimulus (e.g., React/Vue frontends or legacy PHP).
    • Collections are static (no need for add/delete/reorder).
    • You require Live Components (use Symfony UX’s LiveCollectionType instead).
    • Your design demands highly customized animations (e.g., complex transitions) beyond the package’s CSS.
    • You’re using Bootstrap 4 or non-Bootstrap CSS frameworks (tabbed collections rely on Bootstrap 5).

How to Pitch It (Stakeholders)

For Executives:

*"This package lets us ship interactive, dynamic forms faster—think drag-and-drop product bundles, reorderable survey questions, or nested admin panels—without building custom JavaScript. It integrates seamlessly with Symfony UX, reducing dev time by 30–50% for features like:

  • E-commerce: Let users customize bundles with live previews.
  • CRM: Sortable task lists or employee skill matrices.
  • Admin Tools: EasyAdmin collections with drag-and-drop reordering. It’s MIT-licensed, actively maintained, and used by teams like [EasyAdmin/QAG], cutting technical debt while improving UX."*

For Engineers:

*"Pros:

  • Drop-in replacement for CollectionType with drag-and-drop, reordering, and dynamic add/delete—no Stimulus boilerplate.
  • Symfony UX native: Works with Stimulus controllers for real-time updates (e.g., recalculating totals on item change).
  • Extensible: Hook into events (ux-collection:change, ux-collection:add) for custom logic.
  • Theming: Override CSS/JS easily (e.g., horizontal collections, tabbed layouts).
  • EasyAdmin/QAG: Plugs into admin panels with minimal config.

Cons:

  • Requires Symfony UX/Stimulus (not a standalone JS lib).
  • Tabbed collections need Bootstrap 5 (or CSS overrides).
  • Not compatible with Live Components (use LiveCollectionType instead).

Quick Win: Replace a manual CollectionType form with UxCollectionType in 10 minutes—add drag-and-drop in 5 more. Example:

$builder->add('items', UxCollectionType::class, [
    'entry_type' => ItemType::class,
    'allow_drag_and_drop' => true,
    'min' => 1, 'max' => 10,
]);

Use Case: If you’re building a cart, quiz builder, or nested config panel, this saves weeks of dev work."*

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui
babelqueue/php-sdk
facebook/capi-param-builder-php
babelqueue/symfony
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle
atriumphp/atrium