Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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):git clone+cd pub_sub/php/sdk+composer installdapr run -f .(multi-app) or per-appdapr run --app-id ... -- php app.phpPublished data: {"orderId":1}/Subscriber received : 1)dapr.yaml, the ReactPHP-based subscriber (Subscription+CloudEvent::parse), and theDaprClient::publishEventpublisher, 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)