PHP code example of launchdarkly / server-sdk-redis-phpredis

1. Go to this page and download the library: Download launchdarkly/server-sdk-redis-phpredis library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

launchdarkly / server-sdk-redis-phpredis example snippets


    $fr = LaunchDarkly\Integrations\PHPRedis::featureRequester([
        "prefix" => "my-key-prefix"
    ]);
    $config = [ "feature_requester" => $fr ];
    $client = new LDClient("sdk_key", $config);
shell
php composer.phar install launchdarkly/server-sdk-redis-phpredis --save