Skip to content

Add PHP feature flag docs#37089

Open
leoromanovsky wants to merge 3 commits into
masterfrom
leo.romanovsky/php-feature-flag-docs
Open

Add PHP feature flag docs#37089
leoromanovsky wants to merge 3 commits into
masterfrom
leo.romanovsky/php-feature-flag-docs

Conversation

@leoromanovsky
Copy link
Copy Markdown
Contributor

Motivation

PHP customers adopting Datadog Feature Flags need the same server-side setup guidance that exists for the other supported SDKs. Without a PHP-specific page, PHP 7 users do not have a clear path to the Datadog PHP feature flag client, and PHP 8 users do not have a documented OpenFeature adapter path.

Changes and Decisions

Changes

This PR adds a PHP server-side Feature Flags documentation page covering prerequisites, installation, initialization, evaluation context, typed flag evaluation, flag details, unit testing, and troubleshooting. It also adds PHP to the server SDK card grid and the English sidebar menu so the page appears alongside .NET, Go, Java, Node.js, Python, and Ruby.

Decisions

The page separates the PHP 7-compatible DDTrace\FeatureFlags\Client API from the PHP 8 DDTrace\OpenFeature\DataDogProvider path. That keeps PHP 7 customers on a supported Datadog API while still documenting the OpenFeature workflow for PHP 8 applications. The structure mirrors the existing server SDK pages so customers can move between languages without relearning the documentation layout.

Validation

Ran staged whitespace validation with git diff --cached --check, checked the new Markdown file for trailing whitespace, and checked the changed files for conflict markers. I did not run a Hugo build because this worktree does not have node_modules or a local Hugo binary installed.

@github-actions github-actions Bot added the Architecture Everything related to the Doc backend label May 28, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Preview links (active after the build_preview check completes)

New or renamed files

@leoromanovsky leoromanovsky marked this pull request as ready for review May 29, 2026 21:28
@leoromanovsky leoromanovsky requested review from a team as code owners May 29, 2026 21:28
@domalessi domalessi self-assigned this May 29, 2026
@domalessi domalessi added the editorial review Waiting on a more in-depth review label May 29, 2026
@domalessi
Copy link
Copy Markdown
Contributor

Created DOCS-14584 for editorial review.

@leoromanovsky Please also note that there are some merge conflicts!

@domalessi domalessi removed their assignment May 29, 2026
@leoromanovsky
Copy link
Copy Markdown
Contributor Author

Created DOCS-14584 for editorial review.

@leoromanovsky Please also note that there are some merge conflicts!

Yep thanks I saw they are minor; will resolve later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Architecture Everything related to the Doc backend editorial review Waiting on a more in-depth review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants