This repo provides sample applications and Docker Compose config to easily get started with Temporal durable workflows and Symfony.
There are 4 applications in the apps
subdir.
- An API to interact (start, query, signal) with the workflows:
apps\workflow-api
. - A first worker to execute Temporal workflow functions:
apps\workflow-worker
. - A second worker to execute Temporal activity functions:
apps\activity-worker
. - An
all-in-one
application which runs the API and a worker which executes both the workflow and activity functions in a single container.
The workers are powered by the RoadRunner application server. The workflow workers and activity workers are configured to listen on two separate queues on the Temporal server.
The API runs either with Nginx Unit, FrankenPHP, Nginx+PHP-FPM
or RoadRunner.
The workflow examples are taken from the Temporal PHP SDK sampes, and modified to adapt to the Symfony applications.
- The Symfony applications
- How the Symfony integration works
- Adding a new function
- How it is implemented (coming soon)
Temporal PHP SDK samples
Other Temporal Symfony packages
- https://github.com/highcoreorg/temporal-bundle
- https://github.com/VantaFinance/temporal-bundle
- https://github.com/buyanov/symfony-temporal-worker
Docker Nginx Unit PHP
Docker PHP