Download the PHP package comocode/laravel-ab without Composer
On this page you can find all versions of the php package comocode/laravel-ab. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package laravel-ab
laravel-ab
An A/B Testing suite for Laravel which allows multiple and nested experiments.
This will create trackable experients with as many conditions as you'd like. And will track conversion on each experiment based on keywords provided.
You can have nested experiments, its conditions are regular VIEW outputs making experiments easy to add/remove from your projects.
Usage
Install using composer or which ever means you prefer
then add the service provider to your app.php in config/ folder like so
Once you have registered the service provider. You can run php artistan
and see the following output:
ab:migrate migrates Laravel-Ab required tables
ab:rollback removes Laravel-Ab tables
ab:report <experiment> --list outputs statistics on your current experiments or the one specified in the command
you can run ab:migrate to create the required tables, and ab:rollback to remove them anytime you wish to view your experiment results, use the export command to see statistics
Creating Experiments
There are a few PHP A/B and other Laravel packages available.
This project focuses on providing the ability to test multiple experiments including nested experiments with a very easy to use blade interface.
to reach an event simply do
in the targed page or by utilizing app()->make('Ab')->goal('NestedGoal') anywhere in your application execution.
Weighted Conditions
if you would like to throttle the decision towards specific conditions you can add a declaration to control the distribution. For example
Will randomly select a result but will calculate the odd of the result based on the sum of the weights (1 + 1 + 2 = 4) vs its specific weight 2/4, 1/4 1/4.
Results
Once an experiment is executed, it will remember the options provided to the user so experiment choice selections do not change upon revisiting your project.
A experiment is recorded per instance and goals are tracked to the instance allowing for aggregation on results per condition.
Contributing
Please feel free to contribute as A/B testing is an important part for any organization.
TODO
Add queable job to send reports on cron Add HTML charts