vwo-php-sdk allows you to A/B Test your Website at server-side.
This repository provides a basic demo of how server-side works with VWO PHP SDK.
- PHP 5.6.0 or later
Refer VWO Official Server-side Documentation
- Install dependencies
composer install
- Update configuration based on your setup inside
config.php
const ACCOUNT_ID = '';
const SDK_KEY = '';
const AB_CAMPAIGN_KEY = '';
const AB_CAMPAIGN_GOAL_IDENTIFIER = '';
const FEATURE_ROLLOUT_CAMPAIGN_KEY = '';
const FEATURE_TEST_CAMPAIGN_KEY = '';
const TAG_KEY = '';
const TAG_VALUE = '';
- Run application
php -S localhost:1112 -t .
//open url without setttings-file being cached
http://localhost:1112
//open url with setttings-file being cached
http://localhost:1112?cache=1
- For development
composer run-script start
Copyright 2019-2020 Wingify Software Pvt. Ltd.