exads/ab-test-data
Composer 安装命令:
composer require exads/ab-test-data
包简介
A class that delivers a structured data for A/B Testing
README 文档
README
In order to use this library:
- Install it using composer:
composer require exads/ab-test-data
- Use it in your class:
<?php namespace MyNamespace; use Exads\ABTestData; class MyClass { public function getData(int $promoId): array { $abTest = new ABTestData($promoId); $promotion = $abTest->getPromotionName(); $designs = $abTest->getAllDesigns(); // ... return array_map(function ($item) { // ... }, $designs); } }
There are 3 A/B Test promotions that can be accessed via this class. Feel free to use any of them (1, 2, 3).
Designs come in the following format:
$designs = [ [ 'designId' => 1, 'designName' => 'Design 1', 'splitPercent' => 35 ], // [ ... ] ];
统计信息
- 总下载量: 530
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-or-later
- 更新时间: 2021-02-26