temporal / money-transfer-project
Temporal Money Transfer Project Template
Installs: 10
Dependents: 0
Suggesters: 0
Security: 0
Stars: 6
Watchers: 12
Forks: 1
Open Issues: 0
Type:project
Requires
- php: >=8.1
- ext-grpc: *
- symfony/polyfill-php83: *
- temporal/sdk: ^2.14.1
Requires (Dev)
- buggregator/trap: ^1.13.0
- internal/dload: ^1.2.0
- phpunit/phpunit: 10.5.45
- spiral/code-style: ~2.2.2
- spiral/core: ^3.14.9
- vimeo/psalm: ^6.12
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:
- PHP 8.1 or later with the
ext-grpc
extension. - Composer for managing dependencies.
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