PHP >= 7.4
Install the latest version with
composer require vwo/vwo-fme-php-sdk
$vwoClient = VWO::init([
'sdkKey' => 'vwo_sdk_key',
'accountId' => 'vwo_account_id',
]);
// set user context
$userContext = [ 'id' => 'unique_user_id'];
// returns a flag object
$getFlag = $vwoClient->getFlag('feature_key', $userContext);
// check if flag is enabled
$isFlagEnabled = $getFlag['isEnabled'];
// get variable
$variableValue = $getFlag->getVariable('variable_key', 'default-value');
// track event
$trackRes = $vwoClient->trackEvent('event_name', $userContext);
// set Attribute
$setAttribute = $vwoClient->setAttribute('attribute_key', 'attribute_value', $userContext);
Refer CHANGELOG.md
- Set development environment
composer run-script start
- Run test cases
composer run-script test
Please go through our contributing guidelines
Copyright 2024 Wingify Software Pvt. Ltd.