PHPackages                             arillo/silverstripe-multiselectfield - 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. arillo/silverstripe-multiselectfield

ActiveSilverstripe-vendormodule[Utility &amp; Helpers](/categories/utility)

arillo/silverstripe-multiselectfield
====================================

A sortable multiple select field for managing many-to-many relations

2.0.2(3mo ago)61.7k2[1 PRs](https://github.com/arillo-ch/silverstripe-multiselectfield/pulls)BSD-3-ClausePHP

Since Feb 15Pushed 3mo ago4 watchersCompare

[ Source](https://github.com/arillo-ch/silverstripe-multiselectfield)[ Packagist](https://packagist.org/packages/arillo/silverstripe-multiselectfield)[ Docs](https://github.com/arillo-ch/silverstripe-multiselectfield)[ RSS](/packages/arillo-silverstripe-multiselectfield/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (4)Versions (14)Used By (0)

MultiSelectField
================

[](#multiselectfield)

A drag &amp; drop sortable select field for managing many-to-many relations.

Inspired by  which breaks in SilverStripe `4.12+`

[![field](images/field.png)](images/field.png)

Installation:
-------------

[](#installation)

### Composer:

[](#composer)

```
$ composer require arillo/silverstripe-multiselectfield
```

### Download:

[](#download)

Simply clone or download this repository and put it in a folder called 'multiselectfield' in your SilverStripe installation folder, then run `dev/build`.

### Example:

[](#example)

The field currently only supports many-to-many relations. The constructor requires an argument for a field to sort on, which you need to define in your `$many_many_extraFields`.

The following is an example of how to use `MultiSelectField` in a simple many-to-many relationship with a "Sort" extra field:

```
use Arillo\MultiSelectField\MultiSelectField;

class Department extends DataObject
{
    private static $db = [
        'Name' => 'Varchar',
    ];

    private static $many_many = [
        'StaffMembers' => 'StaffMember',
    ];

    private static $many_many_extraFields = [
        'StaffMembers' => [
            'Sort' => 'Int',
        ],
    ];

    /**
     * @return FieldList
     */
    public function getCMSFields()
    {
        $fields = parent::getCMSFields();

        $staffField = MultiSelectField::create(
            'StaffMembers',
            'Staff members',
            $this,
            'Sort'
        );
        $fields->addFieldToTab('Root.Main', $staffField);

        return $fields;
    }
}
```

```
class StaffMember extends DataObject
{
    private static $db = [
        'Name' => 'Varchar',
    ];

    private static $many_many = [
        'Departments' => 'Department',
    ];
}
```

###  Health Score

45

—

FairBetter than 92% of packages

Maintenance78

Regular maintenance activity

Popularity26

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 91.7% 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 ~89 days

Recently: every ~178 days

Total

13

Last Release

115d ago

Major Versions

1.x-dev → 2.0.02026-01-22

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/942999?v=4)[Arillo](/maintainers/Arillo)[@arillo](https://github.com/arillo)

---

Top Contributors

[![nicolas-cusan](https://avatars.githubusercontent.com/u/1353931?v=4)](https://github.com/nicolas-cusan "nicolas-cusan (22 commits)")[![bumbus](https://avatars.githubusercontent.com/u/1391103?v=4)](https://github.com/bumbus "bumbus (2 commits)")

---

Tags

alpinejsesbuildphpsilverstripesilverstripe-modulesortablejssilverstripefieldmultiselectmanymanymanytomanymultiselectfield

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/arillo-silverstripe-multiselectfield/health.svg)

```
[![Health](https://phpackages.com/badges/arillo-silverstripe-multiselectfield/health.svg)](https://phpackages.com/packages/arillo-silverstripe-multiselectfield)
```

###  Alternatives

[kinglozzer/multiselectfield

A sortable multiple select field for managing many-to-many relations

1341.2k2](/packages/kinglozzer-multiselectfield)[silverstripe/tagfield

Tag field for SilverStripe

571.2M45](/packages/silverstripe-tagfield)[burnbright/silverstripe-externalurlfield

Provides SilverStripe with a DBField and FormField for handling external URLs.

109.6k1](/packages/burnbright-silverstripe-externalurlfield)[markguinn/silverstripe-gridfieldmultiselect

Gridfield extensions to add checkboxes for each row to easily delete or perform actions on multiple rows.

115.9k](/packages/markguinn-silverstripe-gridfieldmultiselect)[adrhumphreys/silverstripe-textdropdownfield

A text field combined with a dropdown field.

106.1k](/packages/adrhumphreys-silverstripe-textdropdownfield)[wedevelopnl/silverstripe-elemental-grid

Elemental grid module

1014.1k2](/packages/wedevelopnl-silverstripe-elemental-grid)

PHPackages © 2026

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