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.
<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.?q=, pagination, {id, text} response shape) — reusable regardless of framework.Adoption criteria (all would have to be true):
When to look elsewhere (the default):
ux-autocomplete), EasyAdmin, or SonataAdmin, all maintained and first-party or well-supported.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.
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.
How can I help you explore Laravel packages today?