PHPackages                             launchdarkly/server-sdk - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. launchdarkly/server-sdk

ActiveLibrary[HTTP &amp; Networking](/categories/http)

launchdarkly/server-sdk
=======================

Official LaunchDarkly SDK for PHP

6.7.0(2mo ago)3810.2M—9%47[2 issues](https://github.com/launchdarkly/php-server-sdk/issues)11Apache-2.0PHPPHP &gt;=8.1CI passing

Since Dec 31Pushed 2mo ago49 watchersCompare

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

READMEChangelog (10)Dependencies (12)Versions (93)Used By (11)

LaunchDarkly Server-side SDK for PHP
====================================

[](#launchdarkly-server-side-sdk-for-php)

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

LaunchDarkly overview
---------------------

[](#launchdarkly-overview)

[LaunchDarkly](https://www.launchdarkly.com) is a feature management platform that serves trillions of feature flags daily to help teams build better software, faster. [Get started](https://docs.launchdarkly.com/home/getting-started) using LaunchDarkly today!

[![Twitter Follow](https://camo.githubusercontent.com/e9df01ef2d0c328380d090b5edbe3b7b9e76ffb709b5b416511d6c7a5ba3a17f/68747470733a2f2f696d672e736869656c64732e696f2f747769747465722f666f6c6c6f772f6c61756e63686461726b6c792e7376673f7374796c653d736f6369616c266c6162656c3d466f6c6c6f77266d61784167653d32353932303030)](https://twitter.com/intent/follow?screen_name=launchdarkly)

Supported PHP versions
----------------------

[](#supported-php-versions)

This version of the LaunchDarkly SDK is compatible with PHP 8.1 and higher.

Getting started
---------------

[](#getting-started)

Refer to the [SDK reference guide](https://docs.launchdarkly.com/sdk/server-side/php) for instructions on getting started with using the SDK.

Learn more
----------

[](#learn-more)

Read our [documentation](http://docs.launchdarkly.com) for in-depth instructions on configuring and using LaunchDarkly. You can also head straight to the [complete reference guide for this SDK](https://docs.launchdarkly.com/sdk/server-side/php).

The authoritative description of all types, properties, and methods is in the [generated API documentation](http://launchdarkly.github.io/php-server-sdk/).

Testing
-------

[](#testing)

We run integration tests for all our SDKs using a centralized test harness. This approach gives us the ability to test for consistency across SDKs, as well as test networking behavior in a long-running application. These tests cover each method in the SDK, and verify that event sending, flag evaluation, stream reconnection, and other aspects of the SDK all behave correctly.

Contributing
------------

[](#contributing)

We encourage pull requests and other contributions from the community. Check out our [contributing guidelines](CONTRIBUTING.md) for instructions on how to contribute to this SDK.

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. Read [our documentation](https://docs.launchdarkly.com/sdk) 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

71

—

ExcellentBetter than 100% of packages

Maintenance83

Actively maintained with recent releases

Popularity60

Solid adoption and visibility

Community41

Growing community involvement

Maturity88

Battle-tested with a long release history

 Bus Factor3

3 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 ~49 days

Recently: every ~83 days

Total

84

Last Release

84d ago

Major Versions

3.9.1 → 4.0.02021-08-07

4.2.4 → 5.0.02023-01-05

4.3.0 → 5.1.02023-01-31

5.2.0 → 6.0.02023-10-23

5.2.1 → 6.0.22024-01-23

PHP version history (5 changes)0.1.0PHP &gt;=5.4

1.0.0PHP &gt;=5.5

4.0.0PHP &gt;=7.3

5.0.0PHP &gt;=8.0

6.0.0PHP &gt;=8.1

### Community

Maintainers

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

---

Top Contributors

[![eli-darkly](https://avatars.githubusercontent.com/u/35503443?v=4)](https://github.com/eli-darkly "eli-darkly (86 commits)")[![jkodumal](https://avatars.githubusercontent.com/u/19426?v=4)](https://github.com/jkodumal "jkodumal (84 commits)")[![arun251](https://avatars.githubusercontent.com/u/1594156?v=4)](https://github.com/arun251 "arun251 (49 commits)")[![LaunchDarklyCI](https://avatars.githubusercontent.com/u/9384664?v=4)](https://github.com/LaunchDarklyCI "LaunchDarklyCI (26 commits)")[![drichelson](https://avatars.githubusercontent.com/u/602409?v=4)](https://github.com/drichelson "drichelson (22 commits)")[![keelerm84](https://avatars.githubusercontent.com/u/1922716?v=4)](https://github.com/keelerm84 "keelerm84 (20 commits)")[![localheinz](https://avatars.githubusercontent.com/u/605483?v=4)](https://github.com/localheinz "localheinz (17 commits)")[![abacaphiliac](https://avatars.githubusercontent.com/u/1656273?v=4)](https://github.com/abacaphiliac "abacaphiliac (15 commits)")[![eplusminus](https://avatars.githubusercontent.com/u/4154629?v=4)](https://github.com/eplusminus "eplusminus (14 commits)")[![LaunchDarklyReleaseBot](https://avatars.githubusercontent.com/u/86431345?v=4)](https://github.com/LaunchDarklyReleaseBot "LaunchDarklyReleaseBot (13 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (13 commits)")[![richardmiller-zz](https://avatars.githubusercontent.com/u/783827?v=4)](https://github.com/richardmiller-zz "richardmiller-zz (10 commits)")[![pkaeding](https://avatars.githubusercontent.com/u/13951?v=4)](https://github.com/pkaeding "pkaeding (9 commits)")[![mrdon](https://avatars.githubusercontent.com/u/18610?v=4)](https://github.com/mrdon "mrdon (7 commits)")[![adamlaunchingdarkly](https://avatars.githubusercontent.com/u/26095226?v=4)](https://github.com/adamlaunchingdarkly "adamlaunchingdarkly (4 commits)")[![bwoskow-ld](https://avatars.githubusercontent.com/u/48036130?v=4)](https://github.com/bwoskow-ld "bwoskow-ld (4 commits)")[![valerianpereira](https://avatars.githubusercontent.com/u/5975506?v=4)](https://github.com/valerianpereira "valerianpereira (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] (2 commits)")[![jsonbailey](https://avatars.githubusercontent.com/u/1683296?v=4)](https://github.com/jsonbailey "jsonbailey (2 commits)")[![kparkinson-ld](https://avatars.githubusercontent.com/u/93555788?v=4)](https://github.com/kparkinson-ld "kparkinson-ld (2 commits)")

---

Tags

feature-flagsfeature-togglesguzzlelaunchdarklylaunchdarkly-sdkmanaged-by-terraformphpsdklaunchdarklylaunchdarkly php

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[nelmio/api-doc-bundle

Generates documentation for your REST API from attributes

2.3k63.6M233](/packages/nelmio-api-doc-bundle)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[launchdarkly/launchdarkly-php

Official LaunchDarkly SDK for PHP

392.0M4](/packages/launchdarkly-launchdarkly-php)[shopify/shopify-api

Shopify API Library for PHP

4634.8M16](/packages/shopify-shopify-api)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)[api-platform/metadata

API Resource-oriented metadata attributes and factories

243.5M96](/packages/api-platform-metadata)

PHPackages © 2026

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