Skip to content

docs(sdks): document PHP encode-path-params config option - #6525

Open
devin-ai-integration[bot] wants to merge 1 commit into
mainfrom
devin/1785863098-php-encode-path-params
Open

docs(sdks): document PHP encode-path-params config option#6525
devin-ai-integration[bot] wants to merge 1 commit into
mainfrom
devin/1785863098-php-encode-path-params

Conversation

@devin-ai-integration

Copy link
Copy Markdown
Contributor

Summary

PHP SDKs currently drop path parameter values into the URL path unencoded, so a value like ../connections can send a request to a different endpoint than the one the caller asked for. The PHP generator now offers an opt-in encode-path-params flag that percent-encodes those values, closing that class of bug and bringing PHP in line with TypeScript, Go, Java, and C#, which already encode path parameters. It stays off by default so existing SDKs don't change behavior; teams whose path parameter values intentionally contain slashes should know those are sent as %2F once enabled.

Implements docs for: feat(php): add encode-path-params config to percent-encode path parameters (fern-api/fern#17294)

Pages changed:

  • fern/products/sdks/generators/php/configuration.mdx — adds a <ParamField> for encode-path-params (boolean, default false) in the SDK configuration options list, including the %2F caveat.

No SDK changelog entry added (handled separately).

Link to Devin session: https://app.devin.ai/sessions/0ecfc6142c97495b84507590f5a8d3c6

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment, CI, and merge conflict monitoring

@devin-ai-integration
devin-ai-integration Bot requested a review from devalog as a code owner August 4, 2026 17:05
@github-actions

github-actions Bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants