{"id":37012566,"url":"https://github.com/hellofresh/launchdarkly-php","last_synced_at":"2026-01-14T01:11:55.094Z","repository":{"id":62515719,"uuid":"76382087","full_name":"hellofresh/launchdarkly-php","owner":"hellofresh","description":"LaunchDarkly SDK for PHP","archived":true,"fork":true,"pushed_at":"2023-07-16T18:39:36.000Z","size":341,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-12-01T06:49:51.912Z","etag":null,"topics":["wiz-unknown"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"launchdarkly/php-server-sdk","license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hellofresh.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-12-13T17:24:09.000Z","updated_at":"2025-09-06T14:28:00.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/hellofresh/launchdarkly-php","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hellofresh/launchdarkly-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellofresh%2Flaunchdarkly-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellofresh%2Flaunchdarkly-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellofresh%2Flaunchdarkly-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellofresh%2Flaunchdarkly-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hellofresh","download_url":"https://codeload.github.com/hellofresh/launchdarkly-php/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellofresh%2Flaunchdarkly-php/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28407658,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T00:40:43.272Z","status":"ssl_error","status_checked_at":"2026-01-14T00:40:42.636Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["wiz-unknown"],"created_at":"2026-01-14T01:11:54.347Z","updated_at":"2026-01-14T01:11:55.072Z","avatar_url":"https://github.com/hellofresh.png","language":"PHP","readme":"LaunchDarkly SDK for PHP\n===========================\n\n[![Code Climate](https://codeclimate.com/github/launchdarkly/php-client/badges/gpa.svg)](https://codeclimate.com/github/launchdarkly/php-client)\n\n[![Circle CI](https://circleci.com/gh/launchdarkly/php-client.svg?style=svg)](https://circleci.com/gh/launchdarkly/php-client)\n\nRequirements\n------------\n1. PHP 5.5 or higher. \n\nQuick setup\n-----------\n\n1. Install the PHP SDK and monolog for logging with [Composer](https://getcomposer.org/)\n\n        php composer.phar require launchdarkly/launchdarkly-php\n\n1. After installing, require Composer's autoloader:\n\n\t\trequire 'vendor/autoload.php';\n\n1. Create a new LDClient with your SDK key:\n\n        $client = new LaunchDarkly\\LDClient(\"your_sdk_key\");\n\nYour first feature flag\n-----------------------\n\n1. Create a new feature flag on your [dashboard](https://app.launchdarkly.com)\n\n2. In your application code, use the feature's key to check whether the flag is on for each user:\n\n        $user = new LaunchDarkly\\LDUser(\"user@test.com\");\n        if ($client-\u003evariation(\"your.flag.key\", $user)) {\n            # application code to show the feature\n        } else {\n            # the code to run if the feature is off\n        }\n\nFetching flags\n--------------\n\nThere are two approaches to fetching the flag rules from LaunchDarkly:\n\n* Making HTTP requests (using Guzzle)\n* Setting up the [ld-daemon](https://github.com/launchdarkly/ld-daemon) to store the flags in Redis\n\nUsing Guzzle\n============\n\nTo use Guzzle it must be required as a dependency:\n\n    php composer.phar require \"guzzlehttp/guzzle:6.2.1\"\n    php composer.phar require \"kevinrob/guzzle-cache-middleware:1.4.1\"\n\nIt will then be used as the default way of fetching flags.\n\nUsing Redis\n===========\n\n1. Require Predis as a dependency:\n\n    php composer.phar require \"predis/predis:1.0.*\"\n\n2. Create the LDClient with the Redis feature requester as an option:\n\n    $client = new LaunchDarkly\\LDClient(\"your_sdk_key\", ['feature_requester_class' =\u003e 'LaunchDarkly\\LDDFeatureRequester']);\n\nLearn more\n-----------\n\nCheck out 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](http://docs.launchdarkly.com/docs/php-sdk-reference).\n\nContributing\n------------\n\nWe encourage pull-requests and other contributions from the community. We've also published an [SDK contributor's guide](http://docs.launchdarkly.com/docs/sdk-contributors-guide) that provides a detailed explanation of how our SDKs work.\n\nAbout LaunchDarkly\n-----------\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\n    * [Java](http://docs.launchdarkly.com/docs/java-sdk-reference \"Java SDK\")\n    * [JavaScript] (http://docs.launchdarkly.com/docs/js-sdk-reference \"LaunchDarkly JavaScript SDK\")\n    * [PHP] (http://docs.launchdarkly.com/docs/php-sdk-reference \"LaunchDarkly PHP SDK\")\n    * [Python] (http://docs.launchdarkly.com/docs/python-sdk-reference \"LaunchDarkly Python SDK\")\n    * [Python Twisted] (http://docs.launchdarkly.com/docs/python-twisted-sdk-reference \"LaunchDarkly Python Twisted SDK\")\n    * [Go] (http://docs.launchdarkly.com/docs/go-sdk-reference \"LaunchDarkly Go SDK\")\n    * [Node.JS] (http://docs.launchdarkly.com/docs/node-sdk-reference \"LaunchDarkly Node SDK\")\n    * [.NET] (http://docs.launchdarkly.com/docs/dotnet-sdk-reference \"LaunchDarkly .Net SDK\")\n    * [Ruby] (http://docs.launchdarkly.com/docs/ruby-sdk-reference \"LaunchDarkly Ruby SDK\")\n    * [iOS] (http://docs.launchdarkly.com/docs/ios-sdk-reference \"LaunchDarkly iOS SDK\")\n    * [Android] (http://docs.launchdarkly.com/docs/android-sdk-reference \"LaunchDarkly Android SDK\")\n* Explore LaunchDarkly\n    * [launchdarkly.com] (http://www.launchdarkly.com/ \"LaunchDarkly Main Website\") for more information\n    * [docs.launchdarkly.com] (http://docs.launchdarkly.com/  \"LaunchDarkly Documentation\") for our documentation and SDKs\n    * [apidocs.launchdarkly.com] (http://apidocs.launchdarkly.com/  \"LaunchDarkly API Documentation\") for our API documentation\n    * [blog.launchdarkly.com] (http://blog.launchdarkly.com/  \"LaunchDarkly Blog Documentation\") for the latest product updates\n    * [Feature Flagging Guide] (https://github.com/launchdarkly/featureflags/  \"Feature Flagging Guide\") for best practices and strategies\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhellofresh%2Flaunchdarkly-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhellofresh%2Flaunchdarkly-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhellofresh%2Flaunchdarkly-php/lists"}