dezer32 / laravel-temporal
Integration temporal to laravel.
v1.1.2
2022-12-27 16:21 UTC
Requires
- php: ^8.0
- illuminate/console: ^9.41
- illuminate/http: ^9.41
- illuminate/support: ^9.41
- nyholm/psr7: ^1.5
- spiral/roadrunner: ^2.12
- symfony/psr-http-message-bridge: ^2.1
- temporal/sdk: ^2.3
README
Introduce
This is an alternative implementation of Laravel's temporal.io integration.
For Laravel 9.0.
Older link: laravel-temporal-project.git
Installation
1. Install package
composer require dezer32/laravel-temporal
2. Add vars to .env file
TEMPORAL_CLI_ADDRESS=temporal:7233
3. ...
4. Profit!
Usage
<?php declare(strict_types=1); namespace Dezer32\Temporal\Laravel\Example\Providers; use Dezer32\Temporal\Laravel\Core\Providers\TemporalServiceProvider; class ExampleTemporalServiceProvider extends TemporalServiceProvider { protected array $activityBindings = []; protected array $workflowBindings = []; }
Demo usage: demo-laravel-temporal.git
Other
Docker
Add docker configuration in project:
php artisan vendor:publish --tag=laravel-temporal-docker
.env
DB_CONNECTION=pgsql DB_HOST=127.0.0.1 DB_PORT=5432 DB_DATABASE=temporal-project DB_USERNAME=temporal-project DB_PASSWORD=temporal-project WORKING_DIR=/var/app TEMPORAL_VERSION=1.18 TEMPORAL_UI_VERSION=2.8.3 TEMPORAL_CLI_ADDRESS=temporal:7233 TEMPORAL_CORS_ORIGINS=http://localhost:3000