temporal/money-transfer-project
Composer 安装命令:
composer create-project temporal/money-transfer-project
包简介
Temporal Money Transfer Project Template
README 文档
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-grpcextension. - 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
统计信息
- 总下载量: 12
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 8
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-06-11