diff --git a/frontend/src/component/onboarding/sdkSnippets.ts b/frontend/src/component/onboarding/sdkSnippets.ts index 4002023c6da2..90984720f92a 100644 --- a/frontend/src/component/onboarding/sdkSnippets.ts +++ b/frontend/src/component/onboarding/sdkSnippets.ts @@ -62,11 +62,14 @@ end`, use Unleash\\Client\\UnleashBuilder; +require 'vendor/autoload.php'; + $unleash = UnleashBuilder::create() ->withAppName('unleash-onboarding-php') ->withAppUrl('<YOUR_API_URL>') ->withHeader('Authorization', '<YOUR_API_TOKEN>') ->withInstanceId('unleash-onboarding-instance') + ->withMetricsInterval(5000) ->build();`, Rust: `let client = client::ClientBuilder::default() .interval(500) @@ -203,7 +206,11 @@ export const checkFlagCodeSnippets: Record<SdkName, string> = { }, 1000); `, Ruby: ``, - PHP: ``, + PHP: `while (true) { + echo 'Feature flag is: ' . $unleash->isEnabled('<YOUR_FLAG>') . PHP_EOL; + sleep(1); +} +`, Rust: ``, '.NET': ``, Java: ``,