temporal/money-transfer-project

Temporal Money Transfer Project Template

dev-main 2025-06-12 07:25 UTC

This package is not auto-updated.

Last update: 2025-06-12 13:58:50 UTC


README

This is the companion code for the tutorial Run your first Temporal Application with PHP.

Getting Started

Before you start, make sure you have PHP version 8.1 or higher and Composer installed in your environment.

Install the project with Composer

composer create-project --prefer-dist -sdev temporal/money-transfer-project
cd temporal/money-transfer-project

This command will create a new project from the template. All dependencies and necessary files will be installed automatically, including RoadRunner and Temporal.

Install the project with Git

Clone the repository to your local machine:

git clone https://github.com/temporalio/money-transfer-project-template-php
cd money-transfer-project-template-php

Run the command to install dependencies:

composer install

Run the project

Start the Temporal Server in development mode:

./temporal server start-dev --log-level error --color always

In another terminal, start RoadRunner:

./rr serve

Run the workflow

To execute the money transfer workflow, you can use the provided PHP script. This script will initiate a transfer between two accounts.

php bin/transfer.php

Open the Web UI

To monitor and inspect the progress and status of your money transfer workflows, open the Temporal UI in your browser. This allows you to view running workflows, completed workflows, and detailed execution histories.

Go to http://localhost:8233