A simple A/B testing framework for PHP based on the Vanity Project for Rails
JavaScript PHP
Permalink
Failed to load latest commit information.
.settings starting file set: version 0.3 Mar 15, 2010
config refactoring: replace mentions of $config with $ab_config to avoid nam… May 23, 2010
css starting file set: version 0.3 Mar 15, 2010
js starting file set: version 0.3 Mar 15, 2010
lib Add the ability to delete the data for individual tests, selectively,… Jul 5, 2010
redis Add the ability to delete the data for individual tests, selectively,… Jul 5, 2010
.gitignore starting file set: version 0.3 Mar 15, 2010
ABOUT.txt update licence with gplv3 Mar 15, 2010
README.markdown -bug fix to fix tracking of larger values than 1 Mar 21, 2010
TODO.txt
core.php small fixes May 24, 2010
example.php turn off developer mode for example.php May 23, 2010
report.php Add the ability to delete the data for individual tests, selectively,… Jul 5, 2010

README.markdown

A/B TESTING FOR PHP USING REDIS

Introduction

PHP A/B Testing with Redis is code you can include in your PHP web application to A/B test

To set up this project:

  1. Start up redis. Specify the host name and db number in config/configure.php
  2. Define things to measure in config/metrics.php following the declaration pattern in the file's example
  3. Define the tests you'd like to perform in config/tests.php following the pattern there. Specify a metric for each test as shown in the example
  4. include core.php in your code.
  5. make sure to set ab_participant_specify_id("a_unique_id_for_this_user") at least once
  6. for every metric, call: ab_track("name_of_your_metric");
  7. every time you need a choice, call: ab_test("name_of_your_ab_test"); and it will return a string represing the alternative to use

that is all.