1. Go to this page and download the library: Download comocode/laravel-ab library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
</div>
@ab('My First Experiment') ///// the name of the experiment
@condition('ConditionOne') /// one possible condition for the experiment
<div class="uk-grid">
<div class="uk-width-1-1 uk-text-center">
@ab('My Nested Experiment') /// an experiment nested within the top experiment
@condition('NestedConditionOne')
<h3>Some tag</h3>
@condition('NestedConditionTwo') /// some values
<h3>Some other tag</h3>
@condition('NestedConditionThree')
<h3>Another tag</h3>
@track('NestedGoal') /// the goal to track this experiment to
</div>
</div>
@condition('ConditionTwo')/// condition for top level test
<h1> other stuff </h1>
@track('TopLevelGoal') /// goal for top level test
@ab('My Nested Experiment') /// an experiment nested within the top experiment
@condition('NestedConditionOne [2]')
<h3>Some tag</h3>
@condition('NestedConditionTwo [1]') /// some values
<h3>Some other tag</h3>
@condition('NestedConditionThree [1]')
<h3>Another tag</h3>
@track('NestedGoal') /// the goal to track this experiment to
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.