https://github.com/durable-workflow/workflow
Durable workflow engine that allows users to track job status, orchestrate microservices and write long running persistent distributed workflows in PHP powered by Laravel Queues. Inspired by Temporal and Azure Durable Functions.
https://github.com/durable-workflow/workflow
background-jobs bpm bpmn durable-functions jobs laravel microservices orchestration php queueing status workflow workflow-engine workflows
Last synced: 6 days ago
JSON representation
Durable workflow engine that allows users to track job status, orchestrate microservices and write long running persistent distributed workflows in PHP powered by Laravel Queues. Inspired by Temporal and Azure Durable Functions.
- Host: GitHub
- URL: https://github.com/durable-workflow/workflow
- Owner: durable-workflow
- License: mit
- Created: 2022-02-25T01:15:04.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2026-03-09T04:25:21.000Z (6 days ago)
- Last Synced: 2026-03-09T08:54:12.860Z (6 days ago)
- Topics: background-jobs, bpm, bpmn, durable-functions, jobs, laravel, microservices, orchestration, php, queueing, status, workflow, workflow-engine, workflows
- Language: PHP
- Homepage: https://durable-workflow.com
- Size: 488 KB
- Stars: 1,171
- Watchers: 19
- Forks: 64
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Funding: .github/funding.yml
- License: LICENSE
Awesome Lists containing this project
README
Durable Workflow (formerly Laravel Workflow) is a package for the Laravel web framework that provides tools for defining and managing workflows and activities. A workflow is a series of interconnected activities that are executed in a specific order to achieve a desired result. Activities are individual tasks or pieces of logic that are executed as part of a workflow.
Durable Workflow can be used to automate and manage complex processes, such as agentic workflows (AI-driven), financial transactions, data analysis, data pipelines, microservices, job tracking, user signup flows, sagas and other business processes. By using Durable Workflow, developers can break down large, complex processes into smaller, modular units that can be easily maintained and updated.
Some key features and benefits of Durable Workflow include:
- Support for defining workflows and activities using simple, declarative PHP classes.
- Tools for starting, monitoring, and managing workflows, including support for queuing and parallel execution.
- Built-in support for handling errors and retries, ensuring that workflows are executed reliably and consistently.
- Integration with Laravel's queue and event systems, allowing workflows to be executed asynchronously on worker servers.
- Extensive documentation and a growing community of developers who use and contribute to Durable Workflow.
## Documentation
Documentation for Durable Workflow can be found on the [website](https://durable-workflow.com/docs/installation).
## Community
You can find us in the [GitHub discussions](https://github.com/durable-workflow/workflow/discussions) and also on our [Discord channel](https://discord.gg/xu5aDDpqVy).
## Sample App
There's also a [sample application](https://github.com/durable-workflow/sample-app) that you can run directly from GitHub in your browser.
## Usage
**1. Create a workflow**
```php
use function Workflow\activity;
use Workflow\Workflow;
class MyWorkflow extends Workflow
{
public function execute($name)
{
$result = yield activity(MyActivity::class, $name);
return $result;
}
}
```
**2. Create an activity**
```php
use Workflow\Activity;
class MyActivity extends Activity
{
public function execute($name)
{
return "Hello, {$name}!";
}
}
```
**3. Run the workflow**
```php
use Workflow\WorkflowStub;
$workflow = WorkflowStub::make(MyWorkflow::class);
$workflow->start('world');
```
```php
$workflow->output();
=> 'Hello, world!'
```
## Sponsors
The Durable Workflow package is sustained by the community via sponsors and volunteers.
- Freispace Resource Scheduling
- Hugo Cox
## Monitoring
[Waterline](https://github.com/durable-workflow/waterline) is a separate UI that works nicely alongside Horizon. Think of Waterline as being to workflows what Horizon is to queues.
### Dashboard View

### Workflow View

Refer to https://github.com/durable-workflow/waterline for installation and configuration instructions.
"Laravel" is a registered trademark of Taylor Otwell. This project is not affiliated, associated, endorsed, or sponsored by Taylor Otwell, nor has it been reviewed, tested, or certified by Taylor Otwell. The use of the trademark "Laravel" is for informational and descriptive purposes only. Durable Workflow is not officially related to the Laravel trademark or Taylor Otwell.