Download the PHP package innocraft/php-experiments without Composer
On this page you can find all versions of the php package innocraft/php-experiments. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package php-experiments
PHP Experiments is an A/B Test and Split Test library
Code Status
Introduction
PHP Experiments is built for A/B and Split Testing for Matomo Analytics but can be used in any PHP project. Matomo (formerly Piwik) is the leading open source web analytics platform used on over 1 million websites and apps in over 150 countries. InnoCraft is the company of the makers of Matomo Analytics.
Features
- Easily create and run A/B tests and split tests.
- Experiment traffic allocation: For example configure that only 80% of all users should participate in an experiment.
- Variation traffic allocation: For example allocate more traffic to some specific variations, giving other variations less traffic.
- When a user enters an experiment for the first time, a variation will be chosen randomly. On all subsequent requests the same variation will be activated.
- Possibility to force a specific variation instead of choosing it randomly.
- To ensure a user always gets to see the same variation, the name of the activated variation is stored in a cookie, a custom storage can be configured.
- Easy to use with plain arrays and easily extensible and customizable (custom storage, filters and variations can be defined).
- Tested with unit tests.
- No dependencies, lightweight, simple.
Example
See examples directory for various examples.
Running an A/B test might be as easy as:
Running a split URL test can be as easy as:
Requirements
- PHP 5.5.9 or greater
Installation
To get the latest version, require the library using Composer:
Instead, you may manually update your require block and run composer update
if you so choose:
License
PHP Experiments is released under the LGPL v3 license, see LICENSE.
Developer
Docs generation
To update the documentation within the docs directory execute the following commands
cd docs
composer install
(only needed once)./generateDocs.sh