Skip to content

feuzeu/temporal-symfony-samples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 

Repository files navigation

Temporal samples for Symfony

This repo provides sample applications and Docker Compose config to easily get started with Temporal durable workflows and Symfony.

The applications

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.

Documentation

  1. The Symfony applications
  2. How the Symfony integration works
  3. Adding a new function
  4. How it is implemented (coming soon)

Credits

Temporal PHP SDK samples

Other Temporal Symfony packages

Docker Nginx Unit PHP

Docker PHP

About

Sample Symfony apps to run an API and workers for Temporal workflows

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published