An open API service indexing awesome lists of open source software.

https://github.com/theopenwebjp/simple-php-ab-tester

Configurable simple AB tester for PHP
https://github.com/theopenwebjp/simple-php-ab-tester

ab-testing php testing

Last synced: about 1 month ago
JSON representation

Configurable simple AB tester for PHP

Awesome Lists containing this project

README

          

# Description

Simple PHP AB Tester.

Main functionality is done by copy/pasting this directory AND using an if function.

Extra functionality is available here: 「ab-test-id standard」.

## Reason for Making

PHP AB Testers already exist.
However, they often require composer installation, and don't abstract the important parts.
This library aims to be simple and do what is desired with no building, programming, and little need for adding configuration.

## Specification

- Allow for randomization by probability
- Allow for more than 2
- Allow for manual testing using private GET key for override
- Disallow direct access

## Usage

### Via _AB directory

1. Copy _AB template directory to parent directory where being used.
2. Add original and any other AB target files to _AB/inputs/.
3. Optionally(※However always change "manualAccessKey" in settings.json at least for the first time.) make any desired changes to the _AB/settings.json file.
4. Replace target file with "