wpdesk/wp-abtesting

There is no license information available for the latest version (2.0.0) of this package.

Maintainers

Package info

gitlab.com/wpdesk/wp-abtesting

Issues

pkg:composer/wpdesk/wp-abtesting

Statistics

Installs: 16 490

Dependents: 0

Suggesters: 0

Stars: 0

2.0.0 2020-06-05 15:47 UTC

This package is auto-updated.

Last update: 2026-06-26 13:15:24 UTC


README

Small WordPress/PHP library for assigning users to persistent A/B test variants.

Requirements

  • PHP >= 5.6
  • Composer
  • wpdesk/wp-persistence

Installation

composer require wpdesk/wp-abtesting

Basic usage

Create a test by extending EqualGroupsRandomABTest and returning your variant object from get_variant().

Variants are persisted using a WPDesk\Persistence\PersistentContainer, so the same user/container keeps the same variant.

Development

composer install
composer phpunit-unit-fast
composer phpunit-integration-fast

License

MIT