PHPackages                             laravel-enso/select - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. laravel-enso/select

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

laravel-enso/select
===================

Server-side option and typeahead builders for Laravel Enso

5.1.3(2mo ago)2661.2k↓15.8%1520MITPHPPHP ^8.0CI failing

Since Mar 19Pushed 2mo ago5 watchersCompare

[ Source](https://github.com/laravel-enso/select)[ Packagist](https://packagist.org/packages/laravel-enso/select)[ Docs](https://github.com/laravel-enso/select)[ RSS](/packages/laravel-enso-select/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (4)Versions (199)Used By (20)

Select
======

[](#select)

[![License](https://camo.githubusercontent.com/074b89bca64d3edc93a1db6c7e3b1636b874540ba91d66367c0e5e354c56d0ea/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e737667)](LICENSE)[![Stable](https://camo.githubusercontent.com/d7427bd6cb1b4514cd5ee5716bfe4750a3ec63fd271d690dc27754a929e93699/68747470733a2f2f706f7365722e707567782e6f72672f6c61726176656c2d656e736f2f73656c6563742f76657273696f6e)](https://packagist.org/packages/laravel-enso/select)[![Downloads](https://camo.githubusercontent.com/ff4d839a4fcda819867960b9d9ff92584996c86dcfd644120f64701ed3c46348/68747470733a2f2f706f7365722e707567782e6f72672f6c61726176656c2d656e736f2f73656c6563742f646f776e6c6f616473)](https://packagist.org/packages/laravel-enso/select)[![PHP](https://camo.githubusercontent.com/ef6afd4ccdaa708a9b1a0a353d6d03a13ca1f03887b8db701d4118dc30a6735a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d382e302532422d3737376262342e737667)](composer.json)[![Issues](https://camo.githubusercontent.com/6067830e8ee41e511d523ab34b8f60380cdb272a6b21f765fe7a68a29f461463/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f6c61726176656c2d656e736f2f73656c6563742e737667)](https://github.com/laravel-enso/select/issues)[![Merge Requests](https://camo.githubusercontent.com/750ce065b7bc73916f2a7789dc8505ba8203db442047b84f40469a45ed5db867/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732d70722f6c61726176656c2d656e736f2f73656c6563742e737667)](https://github.com/laravel-enso/select/pulls)

Description
-----------

[](#description)

Select provides the server-side option and typeahead builders used by Laravel Enso select controls.

The package ships traits for controller-style endpoints and a configurable `Options` response service that supports selected values, search queries, plain filters, pivot filters, resources, appended attributes, and nested relation attributes.

It can be used inside or outside Enso when a Laravel application needs consistent server-side select data feeds.

Installation
------------

[](#installation)

Install the package:

```
composer require laravel-enso/select
```

Publish the configuration if you want to change defaults such as `trackBy`, `searchMode`, or query attributes:

```
php artisan vendor:publish --tag=select-config
```

Features
--------

[](#features)

- `OptionsBuilder` trait for standard select endpoints.
- `TypeaheadBuilder` trait for typeahead payload conversion.
- `Options` service implementing `Responsable`.
- Search across local attributes and nested relation attributes.
- Support for selected values, pagination limit, params, pivot params, custom resources, and model appends.

Usage
-----

[](#usage)

Typical options endpoint:

```
class Options
{
    use OptionsBuilder;

    protected string $model = Company::class;
    protected array $queryAttributes = ['name', 'person.name'];
}
```

Typical typeahead endpoint:

```
class Typeahead
{
    use TypeaheadBuilder;

    protected string $model = Company::class;
}
```

Supported request inputs include:

- `value`
- `query`
- `paginate`
- `trackBy`
- `searchMode`
- `params`
- `pivotParams`

API
---

[](#api)

### Builder traits

[](#builder-traits)

- `LaravelEnso\\Select\\Traits\\OptionsBuilder`
- `LaravelEnso\\Select\\Traits\\TypeaheadBuilder`

### Response service

[](#response-service)

- `LaravelEnso\\Select\\Services\\Options`

Behavior:

- merges selected values ahead of fresh results
- applies direct and pivot relation filters
- performs filter-based search through `laravel-enso/filters`
- sorts by the first query attribute when possible
- returns a collection or an API resource collection

Depends On
----------

[](#depends-on)

Required Enso packages:

- [`laravel-enso/filters`](https://docs.laravel-enso.com/backend/filters.html) [↗](https://github.com/laravel-enso/filters)
- [`laravel-enso/helpers`](https://docs.laravel-enso.com/backend/helpers.html) [↗](https://github.com/laravel-enso/helpers)

Companion frontend package:

- [`@enso-ui/select`](https://docs.laravel-enso.com/frontend/select.html) [↗](https://github.com/enso-ui/select)

Contributions
-------------

[](#contributions)

are welcome. Pull requests are great, but issues are good too.

Thank you to all the people who already contributed to Enso!

###  Health Score

66

—

FairBetter than 99% of packages

Maintenance86

Actively maintained with recent releases

Popularity41

Moderate usage in the ecosystem

Community38

Small or concentrated contributor base

Maturity88

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 68.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~17 days

Recently: every ~3 days

Total

188

Last Release

73d ago

Major Versions

1.3.5 → 2.7.102018-11-20

1.3.6 → 2.8.142019-01-19

2.8.20 → 3.0.02019-03-08

3.3.11 → 4.0.02020-06-23

4.6.0 → 5.0.02026-04-09

PHP version history (5 changes)1.0.0PHP &gt;=5.6.4

1.1.6PHP &gt;=7.1.0

3.3.0PHP &gt;=7.4.0

4.0.5PHP &gt;=8.0

4.3.1PHP ^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/16073274?v=4)[Adrian Ocneanu](/maintainers/aocneanu)[@aocneanu](https://github.com/aocneanu)

---

Top Contributors

[![aocneanu](https://avatars.githubusercontent.com/u/16073274?v=4)](https://github.com/aocneanu "aocneanu (198 commits)")[![gandesc](https://avatars.githubusercontent.com/u/14071925?v=4)](https://github.com/gandesc "gandesc (49 commits)")[![vmcvlad](https://avatars.githubusercontent.com/u/37445394?v=4)](https://github.com/vmcvlad "vmcvlad (15 commits)")[![raftx24](https://avatars.githubusercontent.com/u/10864136?v=4)](https://github.com/raftx24 "raftx24 (8 commits)")[![jlsjonas](https://avatars.githubusercontent.com/u/932193?v=4)](https://github.com/jlsjonas "jlsjonas (4 commits)")[![GITmanuela](https://avatars.githubusercontent.com/u/44998004?v=4)](https://github.com/GITmanuela "GITmanuela (3 commits)")[![StyleCIBot](https://avatars.githubusercontent.com/u/11048387?v=4)](https://github.com/StyleCIBot "StyleCIBot (3 commits)")[![cosimolemma](https://avatars.githubusercontent.com/u/25321069?v=4)](https://github.com/cosimolemma "cosimolemma (2 commits)")[![mauthi](https://avatars.githubusercontent.com/u/7204559?v=4)](https://github.com/mauthi "mauthi (2 commits)")[![AbdullahiAbdulkabir](https://avatars.githubusercontent.com/u/33360580?v=4)](https://github.com/AbdullahiAbdulkabir "AbdullahiAbdulkabir (2 commits)")[![laravel-shift](https://avatars.githubusercontent.com/u/15991828?v=4)](https://github.com/laravel-shift "laravel-shift (1 commits)")[![codacy-badger](https://avatars.githubusercontent.com/u/23704769?v=4)](https://github.com/codacy-badger "codacy-badger (1 commits)")[![br3athein](https://avatars.githubusercontent.com/u/19969735?v=4)](https://github.com/br3athein "br3athein (1 commits)")

---

Tags

laravellaravel-ensolaravel-packagemultiselectselectselect-server-sidevue-componentsselectbootstrap selectlaravel-ensoselect-server-side

### Embed Badge

![Health badge](/badges/laravel-enso-select/health.svg)

```
[![Health](https://phpackages.com/badges/laravel-enso-select/health.svg)](https://phpackages.com/packages/laravel-enso-select)
```

###  Alternatives

[laravel-enso/tables

Server-side data tables and export backend for Laravel Enso

63355.1k83](/packages/laravel-enso-tables)[istvan-ujjmeszaros/bootstrap-duallistbox

A responsive dual listbox widget optimized for Twitter Bootstrap. It works on all modern browsers and on touch devices.

628207.6k2](/packages/istvan-ujjmeszaros-bootstrap-duallistbox)[laravel-enso/forms

JSON-based form builder for Laravel Enso

12354.2k84](/packages/laravel-enso-forms)[laravel-enso/data-import

Excel Importer dependency for Laravel Enso

2044.0k6](/packages/laravel-enso-data-import)[laravel-enso/tutorials

Tutorial management backend for Laravel Enso

1140.7k](/packages/laravel-enso-tutorials)[laravel-enso/charts

Backend chart payload builders for Laravel Enso

1762.8k8](/packages/laravel-enso-charts)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
