Weave 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 Js Laravel Package

tienvx/ux-collection-js

tienvx/ux-collection-js is a lightweight Laravel/PHP package for dynamic form collections. It makes it easy to add, remove, reorder, and manage repeatable fields or list items in the browser with minimal JavaScript and simple, Blade-friendly integration.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Dynamic one-to-many form editing. The package is a small Symfony UX/Stimulus helper for CollectionType fields — adding and removing rows client-side without a page reload. The product surfaces it enables are concrete: order line items, multi-address checkout, variant/SKU matrices, pricing tiers, tag and attribute editors, team-invite lists, and bulk admin data entry.
  • Build vs. buy (and the answer is "build"). The functionality is roughly a 40–60 line DOM helper: clone a rendered prototype row, reindex the name attributes, wire remove buttons. That is a sprint-task-sized UI concern, not a platform capability. For a 13-star, single-maintainer package last released in July 2022, adopting it as a dependency trades a half-day of work for permanent supply-chain exposure.
  • Framework fit is the deciding factor. Despite being catalogued here as a Laravel/PHP package, this is a Symfony UX (Twig + Stimulus) library. It does not apply to a Laravel, Livewire, or Filament stack — the equivalents there are Livewire array binding, Filament's Repeater, or Alpine.js. Roadmap items that depend on dynamic collection editing should be scoped against the stack we actually run.
  • Roadmap sequencing. If we are a Symfony shop, this is at best a one-sprint accelerator on admin tooling — it unlocks no new customer-facing capability and should never appear as a roadmap dependency or a line item in a build-vs-buy review.

When to Consider This Package

Reasonable to evaluate when:

  • The stack is Symfony 5/6 with Twig forms and Stimulus already in use.
  • The need is exactly "add/remove rows on a CollectionType" and the team would otherwise re-implement the recipe from the Symfony docs.
  • The placement is low-risk internal admin tooling, not checkout, payments, or any accessibility-critical customer flow.
  • The team is prepared to vendor or fork the source and own it — which, given the maturity signals, is the only defensible way to consume it.

Look elsewhere when:

  • The stack is Laravel or Livewire — this package is simply not applicable, and forcing a Symfony UX dependency in is a category error.
  • The flow is customer-facing, PCI-adjacent, or accessibility-critical: 13 stars, a single maintainer, and a last release in July 2022 mean no security posture, no bus-factor cover, and no expectation of fixes.
  • Requirements exceed add/remove — nested collections, drag-and-drop ordering, conditional field visibility, or server-side validation round-trips. Reach for official Symfony UX components or Live Components instead.
  • The team cannot absorb maintenance of a fork, in which case the ~50-line in-house controller is the lower-risk option on every axis.

How to Pitch It (Stakeholders)

For executives: This is a tiny, MIT-licensed UI utility for Symfony forms, not a strategic dependency. It saves perhaps half a day of front-end work on internal admin screens. It does not unlock a new product capability, carries real supply-chain and maintenance risk (one maintainer, no release since July 2022, minimal adoption), and is irrelevant if we are on Laravel. Recommendation: do not add it to our dependency set.

For engineering: If and when we need dynamic Symfony collection rows, copy the pattern into our own Stimulus controller — it is a small, well-understood piece of DOM manipulation and MIT-licensed, so vendoring is legally clean. That keeps ownership, review, and upgrade paths in-house and avoids pinning a trivial behavior to an unmaintained package. If the requirement grows beyond add/remove, the right investment is the official Symfony UX ecosystem, not this library.

Net position: evaluate-and-reject as a dependency; acknowledge as a reference implementation. Adopt the pattern, not the package.

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.
coleus/frame
thtg88/journalism
filagora/filagora-ai-forums
rlacerda83/query-parser
socialdept/atp-orm
cboxdk/laravel-assistant-client
socialdept/atp-resolver
socialdept/tenant-domains
tautvydasr/blade-class-names
socialdept/color-scales
maherelgamil/controller
coleus/widgets
coleus/table
coleus/users
coleus/music
coleus/health
coleus/calendar
coleus/notes
coleus/support
coleus/settings