1. Go to this page and download the library: Download tixelrocks/abtest 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/ */
tixelrocks / abtest example snippets
// config/ab.php
return [
[
// A/B testing a piece of text
'control' => 'Continue',
'treatment' => 'Finish',
'name' => 'Purchase Button Test'
],
[
// A/B testing two view templates
// We will try to use common.welcome-control and common.welcome-treatment templates
'view' => 'common.welcome',
'name' => 'Purchase Button Test'
]
];