https://github.com/aliasaria/php-redis-a-b-testing
A simple A/B testing framework for PHP based on the Vanity Project for Rails
https://github.com/aliasaria/php-redis-a-b-testing
Last synced: about 1 month ago
JSON representation
A simple A/B testing framework for PHP based on the Vanity Project for Rails
- Host: GitHub
- URL: https://github.com/aliasaria/php-redis-a-b-testing
- Owner: aliasaria
- Created: 2010-03-01T18:45:21.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2010-07-05T02:05:26.000Z (almost 15 years ago)
- Last Synced: 2025-03-09T07:38:08.753Z (3 months ago)
- Language: JavaScript
- Homepage: labs.well.ca
- Size: 371 KB
- Stars: 38
- Watchers: 6
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.markdown
Awesome Lists containing this project
README
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 usethat is all.