This repo provides sample applications and Docker Compose config to easily get started with Temporal durable workflows in PHP with and Symfony and Laravel.
There are 4 applications in the symfony and laravel subdirs.
- An API to interact (start, query, signal) with the workflows:
workflow-api. - A first worker to execute Temporal workflow functions:
workflow-worker. - A second worker to execute Temporal activity functions:
activity-worker. - A
workflow-appapplication 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 Symfony and Laravel workflow-api applicatiions can be started either with Nginx Unit, FrankenPHP, Nginx+PHP-FPM or RoadRunner (there is a container for each of these PHP app servers).
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