wpdesk / wp-abtesting
There is no license information available for the latest version (2.0.0) of this package.
2.0.0
2020-06-05 15:47 UTC
Requires
- php: >=5.6
- wpdesk/wp-persistence: ^2.0
Requires (Dev)
- phpunit/phpunit: ^5
- squizlabs/php_codesniffer: ^3.0.2
- wimg/php-compatibility: ^8
- wp-coding-standards/wpcs: ^0.14.1
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