{"id":33996998,"url":"https://github.com/launchdarkly/php-server-sdk-consul","last_synced_at":"2026-06-09T07:31:43.992Z","repository":{"id":37849872,"uuid":"384473730","full_name":"launchdarkly/php-server-sdk-consul","owner":"launchdarkly","description":"Consul integration for the LaunchDarkly SDK for Server-side PHP","archived":false,"fork":false,"pushed_at":"2026-05-08T18:18:22.000Z","size":92,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":35,"default_branch":"main","last_synced_at":"2026-05-08T20:33:44.380Z","etag":null,"topics":["consul","feature-flags","feature-toggles","launchdarkly","launchdarkly-sdk","launchdarkly-sdk-component","managed-by-terraform","php"],"latest_commit_sha":null,"homepage":"https://docs.launchdarkly.com/sdk/features/storing-data/consul#php","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/launchdarkly.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-07-09T15:09:54.000Z","updated_at":"2026-05-08T18:18:46.000Z","dependencies_parsed_at":"2023-02-16T20:55:20.357Z","dependency_job_id":"c3e7c0f9-6811-4372-86b5-aba0e90751f5","html_url":"https://github.com/launchdarkly/php-server-sdk-consul","commit_stats":{"total_commits":26,"total_committers":6,"mean_commits":4.333333333333333,"dds":0.3076923076923077,"last_synced_commit":"bca6eb91ef68aa7799b4114281ba73c9e8fa9860"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/launchdarkly/php-server-sdk-consul","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/launchdarkly%2Fphp-server-sdk-consul","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/launchdarkly%2Fphp-server-sdk-consul/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/launchdarkly%2Fphp-server-sdk-consul/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/launchdarkly%2Fphp-server-sdk-consul/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/launchdarkly","download_url":"https://codeload.github.com/launchdarkly/php-server-sdk-consul/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/launchdarkly%2Fphp-server-sdk-consul/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34096950,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-09T02:00:06.510Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["consul","feature-flags","feature-toggles","launchdarkly","launchdarkly-sdk","launchdarkly-sdk-component","managed-by-terraform","php"],"created_at":"2025-12-13T08:51:37.014Z","updated_at":"2026-06-09T07:31:43.974Z","avatar_url":"https://github.com/launchdarkly.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LaunchDarkly Server-Side SDK for PHP - Consul integration\n\n[![Run CI](https://github.com/launchdarkly/php-server-sdk-consul/actions/workflows/ci.yml/badge.svg)](https://github.com/launchdarkly/php-server-sdk-consul/actions/workflows/ci.yml)\n[![Packagist](https://img.shields.io/packagist/v/launchdarkly/server-sdk-consul.svg?style=flat-square)](https://packagist.org/packages/launchdarkly/server-sdk-consul)\n[![Documentation](https://img.shields.io/static/v1?label=GitHub+Pages\u0026message=API+reference\u0026color=00add8)](https://launchdarkly.github.io/php-server-sdk-consul)\n\nThis library provides a [Consul](https://www.consul.io/)-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 Consul client implementation is the [`friendsofphp/consul-php-sdk`](https://github.com/FriendsOfPHP/consul-php-sdk) package.\n\nThe minimum version of the LaunchDarkly PHP SDK for use with this library is 4.0.0. In earlier versions of the SDK, the Consul integration was bundled in the main SDK package.\n\nThis version of the package uses version 5.x of the `consul-php-sdk` client. If your application needs to use an earlier version of `consul-php-sdk`, use `launchdarkly/server-sdk-consul` 1.x (for version 2.x of `consul-php-sdk`) or `launchdarkly/server-sdk-consul` 2.x (for version 4.x of `consul-php-sdk`).\n\nThe minimum PHP version is 7.4.\n\nFor more information, see [our SDK documentation](https://docs.launchdarkly.com/sdk/features/storing-data).\n\n## Quick setup\n\nThis assumes that you have already installed the LaunchDarkly PHP SDK in your project.\n\n1. Install this package with `composer`:\n\n```shell\nphp composer.phar install launchdarkly/server-sdk-consul --save\n```\n\nIf your project does not already have a dependency on `friendsofphp/consul-php-sdk`, that package will be loaded automatically as a dependency of `launchdarkly/server-sdk-consul`.\n\n3. In your SDK configuration code, configure the Consul integration:\n\n```php\n    $fr = LaunchDarkly\\Integrations\\Consul::featureRequester([\n        \"prefix\" =\u003e \"my-key-prefix\"\n    ]);\n    $config = [ \"feature_requester\" =\u003e $fr ];\n    $client = new LDClient(\"sdk_key\", $config);\n```\n\nBy default, the store will try to connect to a local Consul instance on port 8500. You may specify an alternate configuration as described in the API documentation for `Consul::featureRequester`. Make sure the `prefix` option corresponds to the key prefix that is being used by the Relay Proxy.\n\n## About LaunchDarkly\n\n* 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:\n    * 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.\n    * 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?).\n    * 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.\n    * 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.\n* 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.\n* Explore LaunchDarkly\n    * [launchdarkly.com](https://www.launchdarkly.com/ \"LaunchDarkly Main Website\") for more information\n    * [docs.launchdarkly.com](https://docs.launchdarkly.com/  \"LaunchDarkly Documentation\") for our documentation and SDK reference guides\n    * [apidocs.launchdarkly.com](https://apidocs.launchdarkly.com/  \"LaunchDarkly API Documentation\") for our API documentation\n    * [blog.launchdarkly.com](https://blog.launchdarkly.com/  \"LaunchDarkly Blog Documentation\") for the latest product updates\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaunchdarkly%2Fphp-server-sdk-consul","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flaunchdarkly%2Fphp-server-sdk-consul","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaunchdarkly%2Fphp-server-sdk-consul/lists"}