Restructure the PHP "Run a Worker" page to match the other SDKs

Open
#5,532 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Documentation
Clarity
Mostly clear
Activity status
Active
Tech stack
javascript
Domain
documentation

Research direction

Read docs/develop/php/workers/run-worker-process.mdx alongside the equivalent Run a Worker pages for the other SDKs, and check the heading conventions in AGENTS.md. First confirm with the PHP SDK owners which sections and related pages apply, especially versioning, RoadRunner shutdown, Interceptors, and Serverless Workers. Done means the page has the applicable sections, preserves #run-a-dev-worker and #register-types, and follows the documented heading conventions.

Written by the indexing model from the issue text.

Description

Problem

The PHP SDK's "Run a Worker" page (docs/develop/php/workers/run-worker-process.mdx) doesn't follow the structure the other SDKs use. This came up in review of #5480, which normalized the page's title and sidebar label but left the body as is.

The other seven SDKs share six sections on this page: Create and run a Worker, Register Workflows and Activities, Connect to Temporal Cloud, Configure Worker options, Run a versioned Worker, and Shut down a Worker. The PHP page has two headings, "How to run Worker Processes" and "How to register types". The Temporal Cloud connection, Worker options, and RoadRunner configuration content sits under those two headings without its own sections.

The PHP Workers section also has no Interceptors page, and no Serverless Workers page.

Proposed work

  • Restructure run-worker-process.mdx to use the same section headings as the other SDKs, keeping the existing explicit anchor IDs (#run-a-dev-worker, #register-types) so inbound links keep working.
  • Split out the existing Temporal Cloud (ServiceCredentials) and WorkerOptions content into their own sections.
  • Confirm with the PHP SDK owners whether the other SDKs' sections apply to PHP (Worker Versioning, graceful shutdown under RoadRunner) and write only the ones that do.
  • Confirm whether the PHP SDK has Interceptors and whether Serverless Workers is supported, and add or deliberately omit those pages.
  • Bring the page to the heading conventions in AGENTS.md (sentence case, task-oriented, infinitive verbs).

Related

  • #5480 (Workers section audit, where this was raised)
  • The code on this page is hand-written. Moving it to documentation-sdk-code-examples is tracked in #5533 so the two changes can land in either order.
Dominant language
JavaScript
Stars
177
Forks
339
Avg merge
2d 8h
Merged PRs (30d)
194

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from temporalio/documentation

All issues in temporalio/documentation

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.