PHPackages                             heyday/silverstripe-abtesting - 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. heyday/silverstripe-abtesting

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

heyday/silverstripe-abtesting
=============================

Google Analytics A/B Testing in SilverStripe

0.2.0(10y ago)6341[1 PRs](https://github.com/heyday/silverstripe-abtesting/pulls)PHP

Since Apr 18Pushed 1y ago23 watchersCompare

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

READMEChangelog (1)Dependencies (3)Versions (13)Used By (0)

SilverStripe ABTesting
======================

[](#silverstripe-abtesting)

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

[](#installation-with-composer)

```
$ composer require heyday/silverstripe-abtesting:0.2.0

For 2.4 see the tag 0.1.7

```

Usage
-----

[](#usage)

Add the following to your root level Page SilverStripe template

```

	$ABTestScript

		$SiteConfig.ABTestGlobalScript

```

Decorate the object/page you wish to test with the ABTestingExtension

```
class Page_Controller extends ContentController
{
    public static $extensions = array(
        "ABTestingExtension('a','b')"
    );
}
```

Set up the variations for the test

For SilverStripe 2.4

```

// State for b

// State for default

```

For SilverStripe 3

```

// State for b

// State for default

```

Where `st` is a GET variable like `/?st=b`

Unit testing
------------

[](#unit-testing)

```
$ composer install --dev
$ vendor/bin/phpunit

```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance26

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity60

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

Recently: every ~215 days

Total

10

Last Release

3868d ago

### Community

Maintainers

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

---

Top Contributors

[![camspiers](https://avatars.githubusercontent.com/u/51294?v=4)](https://github.com/camspiers "camspiers (6 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/heyday-silverstripe-abtesting/health.svg)

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

###  Alternatives

[fbf/laravel-youtube

A Laravel package to upload videos to a YouTube channel

954.2k](/packages/fbf-laravel-youtube)[quadrubo/filament-model-settings

This is my package filament-model-settings

1637.5k](/packages/quadrubo-filament-model-settings)[typicms/bootforms

Just a Formbuilder with some Bootstrap 5 specific conveniences. Remembers old input, retrieves error messages and handles all your boilerplate Bootstrap markup automatically.

1256.0k2](/packages/typicms-bootforms)[zmoyi/jstan

聚水潭-php-sdk

153.8k1](/packages/zmoyi-jstan)

PHPackages © 2026

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