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

Select2Entity Bundle Laravel Package

kissifrot/select2entity-bundle

A Symfony bundle that turns entity form fields into AJAX-powered Select2 inputs, letting users search and pick related entities from large datasets without loading them all. It provides a form type, autocomplete controller, and configurable endpoints for paginated, server-side entity lookup.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Build vs. buy on admin/back-office form UX: This bundle answers a narrow but recurring question — do we hand-roll an AJAX-backed entity picker (Select2 + a controller endpoint + a custom form type) or adopt an existing drop-in? For a single internal admin screen, hand-rolling is ~1–2 days of work; this bundle is the "buy" option only if the surrounding stack is Symfony 2.x.
  • Feature scoping for entity relations at scale: Standard EntityType fields render every row as an <option>, which breaks down past a few hundred records. This package is a data point that the "searchable, paginated relation picker" is a real, repeatedly-solved problem — useful when deciding whether that capability belongs in our platform's shared form-component library rather than being re-implemented per feature.
  • Roadmap signal for framework currency: The package targets Symfony2, which reached end of life in 2018. Its presence in a dependency review is a concrete trigger to audit whether any of our services are still on legacy Symfony and to size a migration — not to add new surface area.
  • Use cases it fits: internal CRUD admin panels, CMS-style content tools, and any form where a user selects one entity from a large, searchable set (customers, products, tags, users) and where the client already ships Select2.
  • Use cases it does not fit: customer-facing flows, anything requiring accessibility certification (Select2's ARIA story is weak and this bundle adds no layer on top), multi-tenant permission filtering on the picker results, or any non-Symfony codebase.

Caveat on the brief: this is a Symfony2 bundle, not a Laravel package. It cannot be dropped into a Laravel app — the form-type integration is bound to Symfony's Form component and DI container. Treat the evaluation below as "would we adopt the equivalent for our stack," and note that the Laravel ecosystem equivalent (e.g. a Select2/vue-select + BelongsTo searchable field) is a different, more actively maintained set of packages.

When to Consider This Package

Adopt only if all of the following hold:

  • The application is on Symfony 2.x (or a fork/backport) and is not scheduled for migration within the current planning horizon.
  • The team already uses Select2 elsewhere, so the JS dependency and its styling are a sunk, accepted cost.
  • The need is an internal admin form entity picker over a table large enough that rendering all options is a real performance or UX problem.
  • You have accepted the maintenance risk and can vendor/fork the code: 1 GitHub star, 0 dependents, and a single-maintainer profile mean effectively no community support, no security triage, and no guarantee of compatibility with future dependency bumps. The "last release" date reads as anomalous metadata, not evidence of active stewardship.

Look elsewhere (or build in-house) when:

  • You are on Symfony 4+/5+/6+ — the Form component API diverged; the bundle will not install cleanly. Use Symfony UX Autocomplete or a maintained Select2/Tom Select integration.
  • You are on Laravel — this is not applicable; use a searchable select in your front-end layer plus a small JSON search endpoint.
  • You need accessibility, i18n of the picker chrome, or hardened input validation — a 1-star bundle gives you none of that, and the security review burden falls entirely on you.
  • The entity set is small (< ~200 rows) — a plain EntityType or a simple <select> is cheaper, accessible, and cacheable.
  • You need server-side authorization filtering on which entities a user may pick; verify the bundle's search endpoint respects your policies, and assume you will have to write that yourself.

How to Pitch It (Stakeholders)

For executives (one line): A small, MIT-licensed UI helper that makes "choose one record from a big list" forms fast and searchable — but it targets an end-of-life framework version, so it's a reference design and a legacy-migration data point, not a new dependency to standardize on.

For engineering: This is a Symfony2 bundle that swaps a standard entity form field for a Select2 widget backed by an AJAX search endpoint — solving the "render 50,000 <option> tags" problem with a drop-in form type. It is functionally the right shape and the wrong vintage. At 1 star, 0 dependents, and a single maintainer, we get no security response, no upgrade path, and no community debugging — so the realistic move is to read it as a design reference and implement the same pattern in our own shared form-component library, sized at roughly 1–2 engineering days, pinned to whatever framework version we actually support. If any team is still on Symfony2, this is a flag to schedule that migration rather than a reason to adopt the bundle. Recommendation: do not add as a dependency; replicate the pattern.

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.
uni-method/symfony-lib
tacticmedia/scim-server-bundle
neika-ai/symfony-bundle
mattleads/agent-publishing-bundle
glavweb/framework-bundle
glavweb/extra-bundle
glavweb/api-bundle
glavweb/admin-bundle
adachsoft/api-version-bundle
elsayed85/laravel-api-exceptions
ouhssini/laravel-demo-mode
daworks/ncloud-outbound-mailer-driver
gp247/cms
ignibyte/aic-gates
nexa-merchant/blog
novasa/laravel-language-center
opencage/geocode
adolfoholzer/parameters
livenetworks/ln-starter
shitoudev/permissionmanager