Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/sdk/server-side-sdks/php/php-gettingstarted.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
));
Expand Down
4 changes: 2 additions & 2 deletions docs/sdk/server-side-sdks/php/php-install.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import PromptContent from '!!raw-loader!@site/static/ai-prompts/php.md'

<AIPromptCopyButton promptContent={PromptContent} />

Requires PHP 7.3 and later.
Requires PHP 8.4 and later, plus the `curl`, `json`, and `mbstring` extensions.

### Composer Installation
[//]: # 'wizard-install-start'
Expand All @@ -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"
}
}
```
Expand Down
2 changes: 1 addition & 1 deletion docs/sdk/server-side-sdks/php/php-openfeature.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
```
Expand Down
2 changes: 1 addition & 1 deletion docs/sdk/server-side-sdks/php/php-usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
8 changes: 4 additions & 4 deletions docs/sdk/server-side-sdks/php/php.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

<CustomDocCardList items={useCurrentSidebarCategory().items} columnWidth={6} />

Expand Down
Loading