PHPackages                             moritz-sauer-13/silverstripe-image-optionset - 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. [Image &amp; Media](/categories/media)
4. /
5. moritz-sauer-13/silverstripe-image-optionset

ActiveSilverstripe-vendormodule[Image &amp; Media](/categories/media)

moritz-sauer-13/silverstripe-image-optionset
============================================

Provides a list of selectable items that use images as the primary label instead of text.

1.0(6mo ago)0331↓50%3BSD-3-ClausePHP

Since Dec 19Pushed 6mo agoCompare

[ Source](https://github.com/moritz-sauer-13/silverstripe-image-optionset)[ Packagist](https://packagist.org/packages/moritz-sauer-13/silverstripe-image-optionset)[ RSS](/packages/moritz-sauer-13-silverstripe-image-optionset/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (1)Versions (6)Used By (3)

This is a form from unclecheese/silverstripe-image-optionset with SilverStripe 6 Support

Image OptionsetField
====================

[](#image-optionsetfield)

Provides a list of selectable items that use images as the primary label instead of text.

Screenshot
----------

[](#screenshot)

[![](tests/assets/example.png)](tests/assets/example.png)

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

[](#installation)

`composer require moritz-sauer-13/silverstripe-image-optionset`

Configuration
-------------

[](#configuration)

You can configure the default width and height of the images.

```
UncleCheese\Forms\ImageOptionsetField:
  default_image_width: 300
  default_image_height: 300
```

Usage
-----

[](#usage)

Simple example:

```
$field = ImageOptionsetField::create('Template', 'Select a template')
                ->setSource([
                    'sidebar' => [
                        'title' => 'Sidebar page',
                        'image' => '/path/to/sidebar.png'
                    ],
                    'block' => [
                        'title' => 'Block page',
                        'image' => '/path/to/block.png'
                    ]
                ]);

// Use a custom image width and height
$field->setImageWidth(100);
$field->setImageHeight(100);
```

If you're not using titles, you can use image paths as the values rather than nested arrays.

```
$field = ImageOptionsetField::create('Template', 'Select a template')
                ->setSource([
                    'sidebar' => '/path/to/sidebar.png'
                    'block' => '/path/to/block.png'
                ]);
```

Tests
-----

[](#tests)

`tests/ImageOptionsetFieldTest`

Troubleshooting
---------------

[](#troubleshooting)

Ring Uncle Cheese.

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance66

Regular maintenance activity

Popularity14

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 87.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 ~167 days

Total

5

Last Release

208d ago

Major Versions

0.1.1 → 1.02025-10-16

### Community

Maintainers

![](https://www.gravatar.com/avatar/237ff98c98e71b509c4dac62b31efaf7823cca011952ded67579a6cf763b7a47?d=identicon)[moritz-sauer-13](/maintainers/moritz-sauer-13)

---

Top Contributors

[![moritz-sauer-13](https://avatars.githubusercontent.com/u/43135946?v=4)](https://github.com/moritz-sauer-13 "moritz-sauer-13 (7 commits)")[![MarcioBarrientos](https://avatars.githubusercontent.com/u/4836851?v=4)](https://github.com/MarcioBarrientos "MarcioBarrientos (1 commits)")

---

Tags

imagesilverstriperadiooptionsetfield

### Embed Badge

![Health badge](/badges/moritz-sauer-13-silverstripe-image-optionset/health.svg)

```
[![Health](https://phpackages.com/badges/moritz-sauer-13-silverstripe-image-optionset/health.svg)](https://phpackages.com/packages/moritz-sauer-13-silverstripe-image-optionset)
```

###  Alternatives

[unclecheese/silverstripe-image-optionset

Provides a list of selectable items that use images as the primary label instead of text.

139.1k2](/packages/unclecheese-silverstripe-image-optionset)[heyday/silverstripe-responsive-images

Configure and send a series of image size options to the client without loading any resources until a media query can be executed.

5387.7k6](/packages/heyday-silverstripe-responsive-images)[chrometoaster/silverstripe-image-quality

Adds Quality function to images

1013.0k1](/packages/chrometoaster-silverstripe-image-quality)[dnadesign/silverstripe-lazyloaded-image

Implements the LQIP (Low Quality Image Placeholder) pattern powered by lazysizes

1011.4k4](/packages/dnadesign-silverstripe-lazyloaded-image)

PHPackages © 2026

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