PHPackages                             launchdarkly/server-sdk-redis-predis - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Caching](/categories/caching)
4. /
5. launchdarkly/server-sdk-redis-predis

ActiveLibrary[Caching](/categories/caching)

launchdarkly/server-sdk-redis-predis
====================================

LaunchDarkly PHP SDK Redis integration using the predis package

2.0.3(10mo ago)12.0M↑13.6%Apache-2.0PHPPHP &gt;=8.1CI passing

Since Aug 7Pushed 1mo ago36 watchersCompare

[ Source](https://github.com/launchdarkly/php-server-sdk-redis-predis)[ Packagist](https://packagist.org/packages/launchdarkly/server-sdk-redis-predis)[ Docs](https://github.com/launchdarkly/php-server-sdk-redis-predis)[ RSS](/packages/launchdarkly-server-sdk-redis-predis/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (9)Dependencies (7)Versions (16)Used By (0)

LaunchDarkly Server-Side SDK for PHP - Redis integration with predis
====================================================================

[](#launchdarkly-server-side-sdk-for-php---redis-integration-with-predis)

[![Run CI](https://github.com/launchdarkly/php-server-sdk-redis-predis/actions/workflows/ci.yml/badge.svg)](https://github.com/launchdarkly/php-server-sdk-redis-predis/actions/workflows/ci.yml)[![Packagist](https://camo.githubusercontent.com/06f50da9122ccbc460c9d85f3489f6139632bb61478095fdec6506b83c557a0e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c61756e63686461726b6c792f7365727665722d73646b2d72656469732d7072656469732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/launchdarkly/server-sdk-redis-predis)[![Documentation](https://camo.githubusercontent.com/594b549773dcf2ae2c08cc82426986546623581e9e74bf421a89b823d9541bd2/68747470733a2f2f696d672e736869656c64732e696f2f7374617469632f76313f6c6162656c3d4769744875622b5061676573266d6573736167653d4150492b7265666572656e636526636f6c6f723d303061646438)](https://launchdarkly.github.io/php-server-sdk-redis-predis)

This library provides a Redis-backed data source for the [LaunchDarkly PHP SDK](https://github.com/launchdarkly/php-server-sdk), replacing the default behavior of querying the LaunchDarkly service endpoints. The underlying Redis client implementation is the [Predis](https://github.com/predis/predis) package. If you want to use the `phpredis` extension instead, see .

The minimum version of the LaunchDarkly PHP SDK for use with this library is 6.4.0.

The minimum PHP version is 8.1.

For more information, see [our SDK documentation](https://docs.launchdarkly.com/sdk/features/storing-data).

Quick setup
-----------

[](#quick-setup)

This assumes that you have already installed the LaunchDarkly PHP SDK in your project.

1. Install this package with `composer`:

```
php composer.phar install launchdarkly/server-sdk-redis-predis --save
```

If your project does not already have a dependency on Predis (`predis/predis`), Predis will be loaded automatically as a dependency of `launchdarkly/server-sdk-redis-predis`.

2. In your SDK configuration code, configure the Redis integration:

```
    $fr = LaunchDarkly\Integrations\Redis::featureRequester(
        $redisClient, ["prefix" => "my-key-prefix"]
    );
    $config = ["feature_requester" => $fr ;
    $client = new LDClient("sdk_key", $config);
```

About LaunchDarkly
------------------

[](#about-launchdarkly)

- LaunchDarkly is a continuous delivery platform that provides feature flags as a service and allows developers to iterate quickly and safely. We allow you to easily flag your features and manage them from the LaunchDarkly dashboard. With LaunchDarkly, you can:
    - Roll out a new feature to a subset of your users (like a group of users who opt-in to a beta tester group), gathering feedback and bug reports from real-world use cases.
    - Gradually roll out a feature to an increasing percentage of users, and track the effect that the feature has on key metrics (for instance, how likely is a user to complete a purchase if they have feature A versus feature B?).
    - Turn off a feature that you realize is causing performance problems in production, without needing to re-deploy, or even restart the application with a changed configuration file.
    - Grant access to certain features based on user attributes, like payment plan (eg: users on the ‘gold’ plan get access to more features than users in the ‘silver’ plan). Disable parts of your application to facilitate maintenance, without taking everything offline.
- LaunchDarkly provides feature flag SDKs for a wide variety of languages and technologies. Check out [our documentation](https://docs.launchdarkly.com/docs) for a complete list.
- Explore LaunchDarkly
    - [launchdarkly.com](https://www.launchdarkly.com/ "LaunchDarkly Main Website") for more information
    - [docs.launchdarkly.com](https://docs.launchdarkly.com/ "LaunchDarkly Documentation") for our documentation and SDK reference guides
    - [apidocs.launchdarkly.com](https://apidocs.launchdarkly.com/ "LaunchDarkly API Documentation") for our API documentation
    - [blog.launchdarkly.com](https://blog.launchdarkly.com/ "LaunchDarkly Blog Documentation") for the latest product updates

###  Health Score

54

—

FairBetter than 97% of packages

Maintenance73

Regular maintenance activity

Popularity42

Moderate usage in the ecosystem

Community20

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~158 days

Recently: every ~41 days

Total

10

Last Release

322d ago

Major Versions

1.x-dev → 2.0.02025-01-17

PHP version history (2 changes)1.0.0PHP &gt;=7.3

2.0.0PHP &gt;=8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/c7e78fd12fb89ed4e1494144fe649fb09b90f1aaa1bd34513b92190dddd73d6a?d=identicon)[launchdarkly](/maintainers/launchdarkly)

---

Top Contributors

[![keelerm84](https://avatars.githubusercontent.com/u/1922716?v=4)](https://github.com/keelerm84 "keelerm84 (25 commits)")[![eli-darkly](https://avatars.githubusercontent.com/u/35503443?v=4)](https://github.com/eli-darkly "eli-darkly (21 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (4 commits)")[![kparkinson-ld](https://avatars.githubusercontent.com/u/93555788?v=4)](https://github.com/kparkinson-ld "kparkinson-ld (3 commits)")[![ld-repository-standards[bot]](https://avatars.githubusercontent.com/u/111005579?v=4)](https://github.com/ld-repository-standards[bot] "ld-repository-standards[bot] (3 commits)")[![pkaeding](https://avatars.githubusercontent.com/u/13951?v=4)](https://github.com/pkaeding "pkaeding (1 commits)")[![devin-ai-integration[bot]](https://avatars.githubusercontent.com/in/811515?v=4)](https://github.com/devin-ai-integration[bot] "devin-ai-integration[bot] (1 commits)")[![osm6495](https://avatars.githubusercontent.com/u/22415818?v=4)](https://github.com/osm6495 "osm6495 (1 commits)")[![apache-hb](https://avatars.githubusercontent.com/u/35050275?v=4)](https://github.com/apache-hb "apache-hb (1 commits)")

---

Tags

feature-flagsfeature-toggleslaunchdarklylaunchdarkly-sdklaunchdarkly-sdk-componentmanaged-by-terraformphppredisredislaunchdarklylaunchdarkly php

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/launchdarkly-server-sdk-redis-predis/health.svg)

```
[![Health](https://phpackages.com/badges/launchdarkly-server-sdk-redis-predis/health.svg)](https://phpackages.com/packages/launchdarkly-server-sdk-redis-predis)
```

###  Alternatives

[symfony/cache

Provides extended PSR-6, PSR-16 (and tags) implementations

4.2k348.9M2.5k](/packages/symfony-cache)[amphp/redis

Efficient asynchronous communication with Redis servers, enabling scalable and responsive data storage and retrieval.

165634.7k44](/packages/amphp-redis)[launchdarkly/server-sdk

Official LaunchDarkly SDK for PHP

3810.2M11](/packages/launchdarkly-server-sdk)[ethanhann/redisearch-php

239113.6k1](/packages/ethanhann-redisearch-php)[pdffiller/qless-php

PHP Bindings for qless

29113.2k1](/packages/pdffiller-qless-php)[launchdarkly/launchdarkly-php

Official LaunchDarkly SDK for PHP

392.0M4](/packages/launchdarkly-launchdarkly-php)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
