← Code Exchange

Temporal samples for the Symfony framework

The applications leverage the Symfony framework features to automatically register the Temporal Workflow and Activity classes, together with their respective options.

They provide advanced Symfony setup (dependency injection, service facades, attributes and compiler pass) that takes care of the boilerplate, so the developers can focus on their Workflow and Activity code.

The API provides restful endpoints and a Swagger page to start workflows, then query or update their status.

They can run with various PHP applications servers: PHP-FPM, Nginx Unit, FrankenPHP or RoadRunner.

The workflows implemented are taken from the https://github.com/temporalio/samples-php repo, and adapted to the Symfony framework.

There are 3 apps running resp. an API, a worker for workflow functions, and a worker for activity functions. A 4th app simultaneously runs an API and a worker in a single container.

💖 Community

About the Author

Thierry Feuzeu photo

Thierry Feuzeu

Senior software architect