public-repo/select2
A Laravel package for integrating Select2 dropdowns into your forms, with helpers for AJAX-loaded options, model binding, and searchable selects. Quickly add rich, user-friendly select inputs without wiring up JavaScript yourself.
<option> elements make admin screens slow and hard to use. This package demonstrates the expected solution — a searchable, AJAX-backed typeahead with model binding, old-input handling, multi-select, and localization — which is the shape most teams want regardless of framework. It supports a "fix existing forms" decision over a larger form-layer rewrite.{results:[{id,text}]} payload. That is days of work, not a quarter.select2entity-bundle, built on Symfony's bundle system, DI extensions, and form types). For a Laravel roadmap item this is disqualifying on architecture fit alone. This supports a standing product decision to require framework/ownership metadata verification before any dependency enters scope — the description itself is unreliable, which is a signal about dependency quality.Adopt only under narrow, explicit conditions:
select2entity-bundle pattern, and you need a stopgap to keep that form field working.EntityType dropdown is a measured performance problem, and you want a drop-in AJAX autocomplete.Look elsewhere when:
EntityType + Tom Select removes the fork and is maintained; prefer these if they clear the bar (they likely do).To executives: The problem is worth funding — large entity dropdowns degrade admin usability and page performance, and a search-as-you-type field fixes it. The package is not worth adopting: it is an unmaintained, zero-adoption fork that is mislabeled as a Laravel package when it targets Symfony. Recommended position: fund a small native implementation of the same interaction pattern (a search endpoint plus a lightweight JS component) within the existing stack. Effort is days, risk is minimal, and we avoid inheriting an orphan dependency and a second framework. No procurement, no license review, no vendor relationship needed.
To engineering: Treat this as a reference implementation of the UX pattern, not a dependency. The valuable, reusable parts are the interaction contract — a debounced, minimum-length-gated AJAX search returning {results:[{id,text}]}, drop-in replacement behavior for standard entity fields, multi-select and clear controls, and old-input/model binding semantics. Implement it natively: thin, authenticated, paginated controller endpoints; an indexed search column to avoid LIKE '%term%' table scans; and a modern JS select component. If a Symfony 7 team genuinely needs the bridge, vend the fork with an internal mirror and a pinned SHA, but benchmark Symfony UX Autocomplete first and expect to replace it — the fork's only reason to exist disappears once upstream catches up.
How can I help you explore Laravel packages today?