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.
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.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.
Adopt only if all of the following hold:
Look elsewhere (or build in-house) when:
EntityType or a simple <select> is cheaper, accessible, and cacheable.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.
How can I help you explore Laravel packages today?