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)

3.0.0(2mo ago)049BSD-3-ClausePHPPHP ^8.3CI passing

Since Jul 26Pushed 2mo 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 today

READMEChangelog (4)Dependencies (11)Versions (7)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)[![CI](https://github.com/fullscreeninteractive/silverstripe-keyvaluefield/actions/workflows/ci.yml/badge.svg)](https://github.com/fullscreeninteractive/silverstripe-keyvaluefield/actions/workflows/ci.yml)

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

45

—

FairBetter than 91% of packages

Maintenance84

Actively maintained with recent releases

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity67

Established project with proven stability

 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 ~271 days

Recently: every ~337 days

Total

6

Last Release

81d ago

Major Versions

1.1.0 → 2.0.02026-04-14

2.x-dev → 3.0.02026-04-14

PHP version history (2 changes)2.0.0PHP ^8.1

3.0.0PHP ^8.3

### 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 (11 commits)")

---

Tags

silverstripeversioned

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### 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

[silverstripe/userforms

UserForms enables CMS users to create dynamic forms via a drag and drop interface and without getting involved in any PHP code

1371.1M85](/packages/silverstripe-userforms)[lekoala/silverstripe-cms-actions

Add actions to your models in SilverStripe

39344.8k31](/packages/lekoala-silverstripe-cms-actions)[symbiote/silverstripe-advancedworkflow

Adds configurable workflow support to the CMS, with a GUI for creating custom workflow definitions.

46302.4k9](/packages/symbiote-silverstripe-advancedworkflow)[lekoala/silverstripe-softdelete

Soft delete extension for SilverStripe

11236.3k](/packages/lekoala-silverstripe-softdelete)[silverstripe/versioned-snapshots

SilverStripe Versioned Snapshots

1418.9k2](/packages/silverstripe-versioned-snapshots)

PHPackages © 2026

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