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

1. Go to this page and download the library: Download launchdarkly/server-sdk-redis-predis 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-predis example snippets


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