Skip to content

Add PHP tab to the Pub/Sub quickstart - #5331

Open
hexmode wants to merge 1 commit into
dapr:v1.18from
hexmode:php-quickstarts
Open

hexmode wants to merge 1 commit into
dapr:v1.18from
hexmode:php-quickstarts

Conversation

@hexmode

@hexmode hexmode commented Sep 21, 2026

Copy link
Copy Markdown

Description

Adds a PHP tab to the Pub/Sub quickstart page (getting-started/quickstarts/pubsub-quickstart.md) in both tabpanes — "Run using Multi-App Run" and "Run one application at a time" — mirroring the existing language tabs (Python, JavaScript, .NET, Java, Go). Also adds PHP to the "Next steps" list of HTTP-variant samples.

Content matches the new PHP samples in dapr/quickstarts (pub_sub/php/sdk + pub_sub/php/http, added in dapr/quickstarts#1342):

  • Prereqs: PHP 8.4+, Composer
  • Setup: git clone + cd pub_sub/php/sdk + composer install
  • Run: dapr run -f . (multi-app) or per-app dapr run --app-id ... -- php app.php
  • Expected output matches the actual PHP apps (Published data: {"orderId":1} / Subscriber received : 1)
  • "What happened?" sections show the real dapr.yaml, the ReactPHP-based subscriber (Subscription + CloudEvent::parse), and the DaprClient::publishEvent publisher, and explain the PHP runtime model (CLI scripts; subscriber embeds a ReactPHP HTTP server since Dapr delivers messages over HTTP)

Merge order / link check

This tab links to github.com/dapr/quickstarts/tree/master/pub_sub/php/{sdk,http}, which will 404 — and fail this repo's link validation — until dapr/quickstarts#1342 is merged to master. Please merge after that PR.

Issue reference

Fixes #5330
Related: dapr/quickstarts#1341 (proposal), dapr/quickstarts#1342 (samples)

Add a PHP language tab to both the Multi-App Run and 'Run one
application at a time' tabpanes of the Pub/Sub quickstart, mirroring
the existing language tabs and pointing at the new
dapr/quickstarts pub_sub/php/{sdk,http} samples. Also list PHP under
the HTTP variant in Next steps.

The PHP subscriber runs as a long-lived CLI that serves Dapr's HTTP
callbacks via an embedded ReactPHP server; the publisher uses the
dapr/php-sdk DaprClient.

Signed-off-by: Mark A. Hershberger <mah@nichework.com>
@hexmode
hexmode requested review from a team as code owners September 21, 2026 01:15
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.

Add PHP tab to the Pub/Sub quickstart (and other PHP-supported building blocks)

1 participant