PHPackages                             unclecheese/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. unclecheese/silverstripe-image-optionset

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

unclecheese/silverstripe-image-optionset
========================================

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

2.0(8y ago)139.1k—0%9[2 issues](https://github.com/unclecheese/silverstripe-image-optionset/issues)[2 PRs](https://github.com/unclecheese/silverstripe-image-optionset/pulls)2BSD-3-ClausePHPCI failing

Since May 10Pushed 8mo agoCompare

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

READMEChangelog (2)Dependencies (1)Versions (3)Used By (2)

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 unclecheese/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

41

—

FairBetter than 89% of packages

Maintenance39

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 50% 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 ~640 days

Total

2

Last Release

3014d ago

Major Versions

1.0 → 2.02018-02-09

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/654636?v=4)[Aaron Carlino](/maintainers/unclecheese)[@unclecheese](https://github.com/unclecheese)

---

Top Contributors

[![MarcioBarrientos](https://avatars.githubusercontent.com/u/4836851?v=4)](https://github.com/MarcioBarrientos "MarcioBarrientos (1 commits)")[![unclecheese](https://avatars.githubusercontent.com/u/654636?v=4)](https://github.com/unclecheese "unclecheese (1 commits)")

---

Tags

imagesilverstriperadiooptionsetfield

### Embed Badge

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

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

###  Alternatives

[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)
