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

tudortibu/select2entity-bundle

A Symfony bundle that provides a Select2Entity form type, enabling AJAX-powered Select2 entity selection in forms. It supports autocomplete-style Doctrine entity lookup and configurable remote endpoints for smoother form integration.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Form UX investment — entity/relation pickers. The underlying problem this bundle addresses (replacing a plain <select> of hundreds or thousands of entities with a searchable, AJAX-backed Select2 dropdown) is a recurring admin-panel requirement. The package is evidence of the pattern, not a viable dependency.
  • Build vs. buy for form widgets. Verdict here is "neither": the off-the-shelf option is unmaintained, so the decision collapses to build a thin internal component on top of a maintained JS library (Select2, Tom Select, Choices.js) plus a small search endpoint.
  • Roadmap prioritization. If entity pickers are a recurring pain point across admin screens, this is a candidate for a shared internal UI component with a documented server-side search contract (?q=, pagination, {id, text} response shape) — reusable regardless of framework.
  • Framework/stack strategy. This is a Symfony2 bundle, not a Laravel package — it cannot be installed into a Laravel application. The most direct product decision it informs is: do not plan any Laravel work around this repo; treat it as a design reference only.
  • Use cases that justify the underlying capability: admin CRUD forms with large foreign-key relations, tagging/categorization fields, user/account assignment pickers, and any select whose option set exceeds ~200 rows or requires server-side filtering.
  • Dependency-risk posture. Zero stars, zero dependents, zero score, and a target framework (Symfony 2.x) that has been end-of-life since 2018. This is a signal to codify a "no single-maintainer, EOL-framework dependencies" rule in the engineering standards.

When to Consider This Package

Adoption criteria (all would have to be true):

  • The application is on Symfony 2.x/3.x — the bundle's only supported territory. Laravel is out of scope entirely.
  • You are maintaining a legacy Symfony admin and need a minimal-effort Select2 entity field.
  • You have someone who can fork and patch it, since upstream activity and community validation are effectively nil.
  • The Select2 version and Symfony form API in your app match what the bundle expects.

When to look elsewhere (the default):

  • Any Laravel application — this is a hard blocker, not a preference. Use Livewire/Filament/Nova for relation fields, or a Blade component wrapping Select2/Tom Select with a JSON search endpoint.
  • Modern Symfony (5/6/7) — use Symfony UX Autocomplete (ux-autocomplete), EasyAdmin, or SonataAdmin, all maintained and first-party or well-supported.
  • Accessibility, i18n, or long-term support requirements — an unmaintained bundle with 0 dependents gives you no CVE coverage, no a11y work, and no bug-fix path.
  • Any production surface where you'd need to justify the dependency in a security review.

Net: the problem is worth solving; this package is not a viable solution for a Laravel shop. It is at best a 30-minute read of its source to borrow the server-side search contract.

How to Pitch It (Stakeholders)

Executive summary. This repo is a Symfony2 bundle for turning a plain entity dropdown into a searchable Select2 field. It is not a Laravel package and cannot be adopted by our stack. With 0 stars, 0 dependents, a single maintainer, and a framework that has been end-of-life for years, adopting or forking it would create maintenance liability with no offsetting benefit. Recommendation: do not adopt; treat it as a reference pattern.

For engineering. The transferable idea is small and well-understood: a form field that hits a JSON search endpoint and renders results client-side. In Laravel the equivalent is a Blade component or Livewire component wrapping Select2/Tom Select, backed by a paginated ?q= endpoint returning {id, text}. That is roughly 1–2 days of work, is testable, and leaves us owning the code rather than inheriting an abandoned bundle.

Ask. (1) Approve building a small internal EntitySelect component instead of sourcing a dependency. (2) Add a standing rule to the dependency policy: no packages targeting EOL framework majors, and no single-maintainer dependencies for anything on a critical admin path. (3) Timebox: one sprint, one engineer, scoped to admin forms only.

Risk if we do nothing. Low — we simply keep our current dropdowns. Risk if we adopt it. High — incompatible framework, no upstream fixes, and a fork we'd own anyway, but with worse documentation than code we'd write ourselves.

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.
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
coleus/apps
seampact/laravel
emmyconceptng/laravel-ng-postcode
jjsquady/round-robin