PHPackages                             dnadesign/silverstripe-elemental-decisiontree - 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. dnadesign/silverstripe-elemental-decisiontree

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

dnadesign/silverstripe-elemental-decisiontree
=============================================

Element displaying information in regards to answers given to questions

3.2.1(2mo ago)1117.7k↑29.5%18[2 issues](https://github.com/dnadesign/silverstripe-elemental-decisiontree/issues)1BSD-3-ClausePHP

Since Jul 26Pushed 2mo ago13 watchersCompare

[ Source](https://github.com/dnadesign/silverstripe-elemental-decisiontree)[ Packagist](https://packagist.org/packages/dnadesign/silverstripe-elemental-decisiontree)[ RSS](/packages/dnadesign-silverstripe-elemental-decisiontree/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (4)Dependencies (6)Versions (30)Used By (1)

Element Decision Tree
=====================

[](#element-decision-tree)

Introduction
------------

[](#introduction)

A decision tree is a succession of questions which depends on each others answers and displays a result accordingly. This module provides an easy way to build such tree and to add it to a page as an element.

Installation (with composer)
----------------------------

[](#installation-with-composer)

```
$ composer require dnadesign/silverstripe-elemental-decisiontree

```

Requirements
------------

[](#requirements)

- SilverStripe 6.x
- (dnadesign/silvertsripe-elemental)\[\]

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

[](#configuration)

The module automatically loads its JS and CSS only on pages that contain a decision tree element. This behaviour can be customised via YML config.

### Available options

[](#available-options)

OptionDefaultDescription`javascript``'dnadesign/silverstripe-elemental-decisiontree:javascript/decision-tree.src.js'`Path to the JS file to load. Set to empty string to disable.`css``'dnadesign/silverstripe-elemental-decisiontree:css/decisiontree.css'`Path to a CSS file to load. Set to empty string to disable.`auto_detect``true`When enabled, checks if the current page has a decision tree element before loading assets. Set to `false` to load assets on all pages.### Examples

[](#examples)

Use your own JS instead of the module's default:

```
SilverStripe\Control\Controller:
  javascript: 'app/javascript/my-decision-tree.js'
```

Use your own CSS instead of the inline focus styles:

```
SilverStripe\Control\Controller:
  css: 'app/css/my-decision-tree.css'
```

Disable all asset loading:

```
SilverStripe\Control\Controller:
  javascript: ''
  css: ''
```

Load assets on all pages (skip automatic element detection):

```
SilverStripe\Control\Controller:
  auto_detect: false
```

Screenshots
-----------

[](#screenshots)

[![](docs/en/_images/decisiontree-admin-screenshot.png)](docs/en/_images/decisiontree-admin-screenshot.png)[![](docs/en/_images/decisiontree-frontend-example.png)](docs/en/_images/decisiontree-frontend-example.png)

###  Health Score

57

—

FairBetter than 98% of packages

Maintenance80

Actively maintained with recent releases

Popularity37

Limited adoption so far

Community29

Small or concentrated contributor base

Maturity73

Established project with proven stability

 Bus Factor3

3 contributors hold 50%+ of commits

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

Recently: every ~2 days

Total

21

Last Release

85d ago

Major Versions

1.0 → 2.02019-04-10

1.0.x-dev → 2.0.22021-03-25

2.3.0 → 3.0.02025-12-08

2.2.4 → 3.1.02025-12-19

2.2.6 → 3.2.12026-04-09

### Community

Maintainers

![](https://www.gravatar.com/avatar/efd88fa106982bcf2e3cd689e6a37d352c54308d14dedeac4ac477a47a432363?d=identicon)[DNADesign](/maintainers/DNADesign)

![](https://www.gravatar.com/avatar/e55a584eaac053bdbe811b1039dd00ac30da0c7978a5efbb6082504c610678d2?d=identicon)[alex-dna](/maintainers/alex-dna)

---

Top Contributors

[![wilr](https://avatars.githubusercontent.com/u/101629?v=4)](https://github.com/wilr "wilr (15 commits)")[![alex-dna](https://avatars.githubusercontent.com/u/6982515?v=4)](https://github.com/alex-dna "alex-dna (13 commits)")[![holyavocad0](https://avatars.githubusercontent.com/u/169965301?v=4)](https://github.com/holyavocad0 "holyavocad0 (9 commits)")[![scott-nz](https://avatars.githubusercontent.com/u/38484948?v=4)](https://github.com/scott-nz "scott-nz (4 commits)")[![gazzayeatman](https://avatars.githubusercontent.com/u/13740601?v=4)](https://github.com/gazzayeatman "gazzayeatman (4 commits)")[![jules0x](https://avatars.githubusercontent.com/u/8979741?v=4)](https://github.com/jules0x "jules0x (3 commits)")[![adrexia](https://avatars.githubusercontent.com/u/984753?v=4)](https://github.com/adrexia "adrexia (3 commits)")[![satrun77](https://avatars.githubusercontent.com/u/166450?v=4)](https://github.com/satrun77 "satrun77 (3 commits)")[![LABCAT](https://avatars.githubusercontent.com/u/9105153?v=4)](https://github.com/LABCAT "LABCAT (1 commits)")[![edwilde](https://avatars.githubusercontent.com/u/415374?v=4)](https://github.com/edwilde "edwilde (1 commits)")[![scott1702](https://avatars.githubusercontent.com/u/10215604?v=4)](https://github.com/scott1702 "scott1702 (1 commits)")[![jakxnz](https://avatars.githubusercontent.com/u/1634995?v=4)](https://github.com/jakxnz "jakxnz (1 commits)")[![jareddreyerss](https://avatars.githubusercontent.com/u/56658401?v=4)](https://github.com/jareddreyerss "jareddreyerss (1 commits)")[![singh-jio](https://avatars.githubusercontent.com/u/240588850?v=4)](https://github.com/singh-jio "singh-jio (1 commits)")

---

Tags

silverstripeelementelementaldecision-tree

### Embed Badge

![Health badge](/badges/dnadesign-silverstripe-elemental-decisiontree/health.svg)

```
[![Health](https://phpackages.com/badges/dnadesign-silverstripe-elemental-decisiontree/health.svg)](https://phpackages.com/packages/dnadesign-silverstripe-elemental-decisiontree)
```

###  Alternatives

[wedevelopnl/silverstripe-elemental-grid

Elemental grid module

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

PHPackages © 2026

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