, (*1)
This extension provides code to A/B test your views., (*2)
Supported strategies:
- hard to beat
- round robin, (*3)
Installation
The preferred way to install this extension is through composer., (*4)
Either run, (*5)
php composer.phar require --prefer-dist bazilio/yii2-bandit
or add, (*6)
"bazilio/yii2-bandit": "*"
to the require section of your composer.json., (*7)
Requirements
Configuration
'components' => [
'redis' => [
'class' => 'yii\redis\Connection',
'hostname' => 'localhost',
'port' => 6379,
'database' => 0,
],
'bandit' => [
'class' => 'bazilio\yii2\bandit\BanditComponent',
'connection' => 'redis'
]
]