bazilio / yii2-bandit
Yii2 A/B testing tool
Installs: 8
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 2
Forks: 0
Open Issues: 1
Type:yii2-extension
Requires
- yiisoft/yii2: *
- yiisoft/yii2-redis: ~2.0
Requires (Dev)
- codeception/codeception: 2.0.*
- phpunit/phpunit: 4.6.*
- yiisoft/yii2-codeception: *
This package is auto-updated.
Last update: 2024-12-06 17:48:34 UTC
README
This extension provides code to A/B test your views.
Supported strategies:
- hard to beat
- round robin
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist bazilio/yii2-bandit
or add
"bazilio/yii2-bandit": "*"
to the require section of your composer.json.
Requirements
- php >=5.4
- Backends:
Configuration
'components' => [ 'redis' => [ 'class' => 'yii\redis\Connection', 'hostname' => 'localhost', 'port' => 6379, 'database' => 0, ], 'bandit' => [ 'class' => 'bazilio\yii2\bandit\BanditComponent', 'connection' => 'redis' ] ]