Skip to content

Add PHP SDK reference variant#261

Open
fern-api[bot] wants to merge 1 commit intoDevon/sdksfrom
Devon/sdks-php-reference
Open

Add PHP SDK reference variant#261
fern-api[bot] wants to merge 1 commit intoDevon/sdksfrom
Devon/sdks-php-reference

Conversation

@fern-api
Copy link
Copy Markdown

@fern-api fern-api bot commented Apr 3, 2026

Summary

Adds a complete PHP SDK reference variant mirroring the existing Python SDK documentation.

Changes

  • 800 PHP reference pages generated from Python templates with proper PHP syntax:
    • All code examples rewritten in PHP (method chaining with ->, array syntax with =>, proper semicolons)
    • Type annotations converted (Optional[T] → ?T, list[T] → array, dict[K,V] → array, Callable → callable)
    • Method names converted from snake_case to camelCase
    • Import statements converted to PHP use statements
    • All internal links updated from /python/ to /php/
  • PHP variant registered in sdks.yml with title "PHP", icon brands fa-php, and navigation layout
  • 49 guide pages updated — uncommented PHP-specific Tab blocks and table rows
  • Core overview page made language-neutral (removed Python-specific code examples and pip install instructions)

Verification

All 8 automated grep checks pass with 0 matches:

  1. No Python slugs in PHP pages
  2. No /reference/python/ links in PHP pages
  3. No python code fences in PHP pages
  4. No Python type syntax (Optional[, dict[, list[, Callable[[, tuple[) in PHP pages
  5. No PHP content remaining inside JSX comment blocks in guides
  6. All uncommented PHP Tab blocks have matching closing tags

Requested by: Fern Support

- Add 800 PHP SDK reference pages, guide updates, and navigation
- Align PHP SDK docs with public API: add 94 missing method pages, remove invalid ones
- Fix broken links in index pages
- Fix orphaned Card closing tags to pass fern check validation

Co-Authored-By: Claude <noreply@anthropic.com>
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.

1 participant