PHP code example of bentools / split-test-analyzer
1. Go to this page and download the library: Download bentools/split-test-analyzer library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
bentools / split-test-analyzer example snippets
use BenTools\SplitTestAnalyzer\SplitTestAnalyzer;
use BenTools\SplitTestAnalyzer\Variation;
6, 804),
new Variation('LP #3', 4592639, 371),
new Variation('LP #4', 4590186, 402),
new Variation('LP #5', 4532325, 470),
new Variation('LP #6', 4531653, 494),
];
$predictor = SplitTestAnalyzer::create()->withVariations(...$variations);
foreach ($predictor->getResult() as $key => $value) {
printf('%s has %d%% chances to be the best one.' . PHP_EOL, $key, $value);
}
print PHP_EOL;
printf('The best one is: %s', $predictor->getBestVariation());
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.