PHPackages                             fullscreeninteractive/silverstripe-keyvaluefield - 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. fullscreeninteractive/silverstripe-keyvaluefield

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

fullscreeninteractive/silverstripe-keyvaluefield
================================================

A Silverstripe FormField for extending TextField with several parts (keys)

1.1.0(1y ago)047BSD-3-ClausePHP

Since Jul 26Pushed 1y ago1 watchersCompare

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

READMEChangelog (2)Dependencies (3)Versions (4)Used By (0)

SilverStripe Key Value Field
============================

[](#silverstripe-key-value-field)

[![Version](https://camo.githubusercontent.com/58951da03f5377006f31fe1347217adea378a4cbccf9b7f3cd06f73037993c20/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f66756c6c73637265656e696e7465726163746976652f73696c7665727374726970652d6b657976616c75656669656c642e737667)](https://packagist.org/packages/fullscreeninteractive/silverstripe-keyvaluefield)[![License](https://camo.githubusercontent.com/c7c06630e77bc8044a57d1134eb28310979c586883f5f44c58be1f083b443810/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f66756c6c73637265656e696e7465726163746976652f73696c7665727374726970652d6b657976616c75656669656c642e737667)](LICENCE.md)

A reusable approach to a form field which extends a simple Text field to have several named parts (keys). This module also supports User Defined Forms.

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

[](#installation)

```
composer require fullscreeninteractive/silverstripe-keyvaluefield

```

Usage
-----

[](#usage)

[![Image of Function](https://raw.githubusercontent.com/fullscreeninteractive/silverstripe-keyvaluefield/master/client/img/demo.png)](https://raw.githubusercontent.com/fullscreeninteractive/silverstripe-keyvaluefield/master/client/img/demo.png)

```
use FullscreenInteractive\KeyValueField\KeyValueField;

$fields = new FieldList(
    KeyValueField::create('Quantity', 'Enter quantity of each size')
        ->setKeys([
            'Small',
            'Medium',
            'Large'
        ])
);
```

When using ORM managed forms and models (i.e `saveInto`) data will be saved as a serialized array of the values to each of the keys. You can change this behaviour if needed in your `Form` class.

```
public function doSave($data, $form)
{
    $quantity = $form->dataFieldByName('Quantity');

    // returns an array of key => value
    $values = json_decode($quantity->dataValue(), true);

    echo $values['Small']
}
```

Licence
-------

[](#licence)

BSD 3-Clause License

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~364 days

Total

3

Last Release

657d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/101629?v=4)[Will Rossiter](/maintainers/wilr)[@wilr](https://github.com/wilr)

---

Top Contributors

[![wilr](https://avatars.githubusercontent.com/u/101629?v=4)](https://github.com/wilr "wilr (7 commits)")

---

Tags

silverstripeversioned

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/fullscreeninteractive-silverstripe-keyvaluefield/health.svg)

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

###  Alternatives

[kinglozzer/multiselectfield

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

1341.2k2](/packages/kinglozzer-multiselectfield)[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)
