This is an alternative implementation of Laravel's temporal.io integration.
For Laravel 9.0.
Older link: laravel-temporal-project.git
composer require dezer32/laravel-temporal
TEMPORAL_CLI_ADDRESS=temporal:7233
<?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
Add docker configuration in project:
php artisan vendor:publish --tag=laravel-temporal-docker
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