Search by

spiral / temporal-bridge

wolfy-jbutschsterroxblnfk

Temporal integration package for Spiral Framework

Package info

github.com/spiral/temporal-bridge

Homepage

Chat

Documentation

pkg:composer/spiral/temporal-bridge

Fund package maintenance!

spiral

Statistics

Installs: 1 811 743

Dependents: 0

Suggesters: 0

Stars: 56

Open Issues: 4

3.3.0 2025-02-28 16:32 UTC

README

Spiral Framework

Temporal integration for Spiral Framework

Documentation Sponsor

Psalm Level Type Coverage Codecov Mutation testing badge


This package connects a Spiral application to Temporal, the open source engine for durable, fault-tolerant workflows. It configures the Temporal clients, registers your workflows and activities in RoadRunner workers and adds console commands to inspect and generate them.

Get Started

Installation

composer require spiral/temporal-bridge

PHP Latest Version on Packagist License Total Downloads

Requirements:

  • PHP 8.2+
  • Spiral Framework 3
  • RoadRunner 3 with the Temporal plugin
  • Extension grpc for client calls, protobuf (recommended)

Configuration

Add the bootloader to the application's bootloader list:

protected const LOAD = [
    \Spiral\TemporalBridge\Bootloader\TemporalBridgeBootloader::class,
    // ...
];

Without an app/config/temporal.php file the bridge reads the environment:

Variable Default Description
TEMPORAL_ADDRESS 127.0.0.1:7233 Address of the Temporal server
TEMPORAL_CONNECTION default Name of the default client
TEMPORAL_TASK_QUEUE default Task queue of workflows without a worker

See the documentation for the config file, workers, interceptors and the temporal:info, create:workflow and create:activity commands.

Useful links