From 8ffded0b91da3da0bd4fe617fecb12045c25b897 Mon Sep 17 00:00:00 2001 From: Jonathan Norris Date: Thu, 6 Aug 2026 09:02:23 -0400 Subject: [PATCH 1/3] docs: align PHP SDK documentation --- docs/sdk/server-side-sdks/php/php-gettingstarted.md | 2 +- docs/sdk/server-side-sdks/php/php-install.md | 4 ++-- docs/sdk/server-side-sdks/php/php-openfeature.md | 2 +- docs/sdk/server-side-sdks/php/php-usage.md | 2 +- docs/sdk/server-side-sdks/php/php.md | 6 +++--- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/sdk/server-side-sdks/php/php-gettingstarted.md b/docs/sdk/server-side-sdks/php/php-gettingstarted.md index 95b5bb7c..a8fe274a 100644 --- a/docs/sdk/server-side-sdks/php/php-gettingstarted.md +++ b/docs/sdk/server-side-sdks/php/php-gettingstarted.md @@ -46,7 +46,7 @@ The SDK exposes various initialization options which can be set when creating a $options = new DevCycleOptions(); $devCycleClient = new DevCycleClient( sdkKey: getenv("DEVCYCLE_SERVER_SDK_KEY"), - dvcOptions: ($options); + dvcOptions: $options); $user_data = new DevCycleUser(array( "user_id"=>"my-user" )); diff --git a/docs/sdk/server-side-sdks/php/php-install.md b/docs/sdk/server-side-sdks/php/php-install.md index bb6bb915..114df48e 100644 --- a/docs/sdk/server-side-sdks/php/php-install.md +++ b/docs/sdk/server-side-sdks/php/php-install.md @@ -19,7 +19,7 @@ import PromptContent from '!!raw-loader!@site/static/ai-prompts/php.md' -Requires PHP 7.3 and later. +Requires PHP 8.1 and later, plus the `curl`, `json`, and `mbstring` extensions. ### Composer Installation [//]: # 'wizard-install-start' @@ -29,7 +29,7 @@ To install the bindings via [Composer](https://getcomposer.org/), add the follow ```json { "require": { - "devcycle/php-server-sdk": "*" + "devcycle/php-server-sdk": "^2.2" } } ``` diff --git a/docs/sdk/server-side-sdks/php/php-openfeature.md b/docs/sdk/server-side-sdks/php/php-openfeature.md index 08341e9e..81dcf117 100644 --- a/docs/sdk/server-side-sdks/php/php-openfeature.md +++ b/docs/sdk/server-side-sdks/php/php-openfeature.md @@ -38,7 +38,7 @@ To install the bindings via [Composer](https://getcomposer.org/), add the follow ```json { "require": { - "devcycle/php-server-sdk": "*" + "devcycle/php-server-sdk": "^2.2" } } ``` diff --git a/docs/sdk/server-side-sdks/php/php-usage.md b/docs/sdk/server-side-sdks/php/php-usage.md index e8add295..e3bfd5e7 100644 --- a/docs/sdk/server-side-sdks/php/php-usage.md +++ b/docs/sdk/server-side-sdks/php/php-usage.md @@ -16,7 +16,7 @@ sidebar_custom_props: { icon: material-symbols:toggle-on } The full user data must be passed into every method. The only required field is `user_id`. The rest are optional and are used by the system for user segmentation into Variables and Features. -See the User model in the [PHP user model doc](https://github.com/DevCycleHQ/php-server-sdk/blob/main/lib/Model/UserData.php) for all accepted fields including custom fields. +See the User model in the [PHP user model doc](https://github.com/DevCycleHQ/php-server-sdk/blob/main/lib/Model/DevCycleUser.php) for all accepted fields including custom fields. ```php use DevCycle\Model\DevCycleUser; diff --git a/docs/sdk/server-side-sdks/php/php.md b/docs/sdk/server-side-sdks/php/php.md index ca5540aa..5c29fc76 100644 --- a/docs/sdk/server-side-sdks/php/php.md +++ b/docs/sdk/server-side-sdks/php/php.md @@ -7,10 +7,10 @@ import {useCurrentSidebarCategory} from '@docusaurus/theme-common'; # DevCycle PHP Server SDK -Welcome to the DevCycle PHP SDK. There are two modes for the SDK, -Cloud bucketing (using the [Bucketing API](https://docs.devcycle.com/bucketing-api/)) and Local Bucketing. +Welcome to the DevCycle PHP SDK. The SDK uses Cloud Bucketing through the +[Bucketing API](https://docs.devcycle.com/bucketing-api/). Local-style bucketing is available through the separate +[SDK Proxy](../../sdk-proxy/index.md), which must run alongside the PHP application or on a reachable host. -We recommend using the Local Bucketing mode by default, as it performs fast local evaluations of your feature flags. If you need access to [EdgeDB](https://docs.devcycle.com/platform/feature-flags/targeting/edgedb) you will need to use the Cloud Bucketing mode of the SDK. From 38d45e739956a7ab654c0125c444b48bdea1e2dd Mon Sep 17 00:00:00 2001 From: Jonathan Norris Date: Thu, 6 Aug 2026 15:18:40 -0400 Subject: [PATCH 2/3] docs: clarify PHP bucketing modes --- docs/sdk/server-side-sdks/php/php.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/sdk/server-side-sdks/php/php.md b/docs/sdk/server-side-sdks/php/php.md index 5c29fc76..a88cb766 100644 --- a/docs/sdk/server-side-sdks/php/php.md +++ b/docs/sdk/server-side-sdks/php/php.md @@ -11,7 +11,7 @@ Welcome to the DevCycle PHP SDK. The SDK uses Cloud Bucketing through the [Bucketing API](https://docs.devcycle.com/bucketing-api/). Local-style bucketing is available through the separate [SDK Proxy](../../sdk-proxy/index.md), which must run alongside the PHP application or on a reachable host. -If you need access to [EdgeDB](https://docs.devcycle.com/platform/feature-flags/targeting/edgedb) you will need to use the Cloud Bucketing mode of the SDK. +If you need access to [EdgeDB](https://docs.devcycle.com/platform/feature-flags/targeting/edgedb), use the SDK's Cloud Bucketing integration rather than the SDK Proxy. From 5d081d9bc6aa974dbc59c3c17d294289cff5aa2c Mon Sep 17 00:00:00 2001 From: Jonathan Norris Date: Thu, 6 Aug 2026 15:35:56 -0400 Subject: [PATCH 3/3] docs: clarify PHP support requirement --- docs/sdk/server-side-sdks/php/php-install.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/sdk/server-side-sdks/php/php-install.md b/docs/sdk/server-side-sdks/php/php-install.md index 114df48e..83f4beb9 100644 --- a/docs/sdk/server-side-sdks/php/php-install.md +++ b/docs/sdk/server-side-sdks/php/php-install.md @@ -19,7 +19,7 @@ import PromptContent from '!!raw-loader!@site/static/ai-prompts/php.md' -Requires PHP 8.1 and later, plus the `curl`, `json`, and `mbstring` extensions. +Requires PHP 8.4 and later, plus the `curl`, `json`, and `mbstring` extensions. ### Composer Installation [//]: # 'wizard-install-start'