2017 © Pedro Peláez
 

library ab

A/B Testing Library

image

krak/ab

A/B Testing Library

  • Monday, December 19, 2016
  • by ragboyjr
  • Repository
  • 1 Watchers
  • 0 Stars
  • 61 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

AB Testing Library

Krak\AB is a framework for implementing AB Tests., (*1)

Installation

Install with composer at krak/ab, (*2)

Usage

<?php

use Krak\AB;

$exp = AB\Experiment::create('flow', [
    // first is the variant name, second is the ratio.
    ['standard', 80],
    ['variant', 20],
]);

$engine = AB\engine([$exp], new Logger()); // any PSR Logger will work
// The default engine is the Hashing engine

foreach (range(1, 10) as $i) {
    //
    echo $engine->activate('flow', 'id_'.$i.rand()) . PHP_EOL;
}

The Versions

19/12 2016

dev-master

9999999-dev

A/B Testing Library

  Sources   Download

MIT

The Requires

 

The Development Requires

19/12 2016

v0.1.0

0.1.0.0

A/B Testing Library

  Sources   Download

MIT

The Requires

 

The Development Requires