temporal/money-transfer-project

Temporal Money Transfer Project Template

dev-main 2025-06-25 08:49 UTC

This package is not auto-updated.

Last update: 2025-06-26 14:11:01 UTC


README

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

Getting Started

Before running this application, ensure you have the following installed:

Install the project with Composer

composer create-project --prefer-dist -sdev temporal/money-transfer-project
cd 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 src/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