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..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 7.3 and later. +Requires PHP 8.4 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..a88cb766 100644 --- a/docs/sdk/server-side-sdks/php/php.md +++ b/docs/sdk/server-side-sdks/php/php.md @@ -7,11 +7,11 @@ 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. +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.