withAppName($appName) ->withAppUrl($appUrl) ->withInstanceId($instanceId) ->withCacheHandler($cache) ->withMetricsEnabled(true) ->withCacheTimeToLive(3) ->withMetricsInterval(300) ->withHeader('Authorization', $apiKey) ->withProxy($apiKey) ->build(); if ($unleash->isEnabled('myFeature')) { echo "myFeature is enabled \n"; } else { echo "myFeature is disabled \n"; } $resolvedVariant = $unleash->getVariant('myFeature'); echo "Resolved a variant"; var_dump($resolvedVariant); sleep(1); if ($unleash->isEnabled('myFeature')) { echo "myFeature is enabled \n"; } else { echo "myFeature is disabled \n"; }