vwo / vwo-fme-php-sdk
VWO server side sdk
Installs: 2 045
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 6
Forks: 0
Open Issues: 0
Requires
- guzzlehttp/guzzle: ^7.8
- lastguest/murmurhash: ^2.1.1
- ramsey/uuid: ^4.2
- vwo/vwo-fme-sdk-e2e-test-settings-n-cases: ^1.2.4
Requires (Dev)
- phpunit/phpunit: ^9.5
README
Requirements
PHP >= 7.4
Installation
Install the latest version with
composer require vwo/vwo-fme-php-sdk
Basic Usage
$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);
Changelog
Refer CHANGELOG.md
Development and Test Cases
- Set development environment
composer run-script start
- Run test cases
composer run-script test
Contributing
Please go through our contributing guidelines
Code of Conduct
License
Copyright 2024 Wingify Software Pvt. Ltd.