Installation
Install Workflow via Composer:Your first workflow
Let’s create a simple workflow that greets a user:Chaining jobs with responses
Jobs can pass data to each other using theresponse() function. This automatically creates dependencies between jobs:
format job automatically waits for calculate to complete because it uses response('calculate').
Using Action classes
For reusable logic, use Action classes instead of closures:Parallel async execution
Useasync() to run independent jobs concurrently:
response() wait for their dependencies.
Conditional execution
Control whether a job runs usingwithRunIf():
sayHello: false and the job will be skipped.
Next steps
Now that you’ve got the basics, explore these concepts:Jobs
Learn about sync vs async jobs, Action classes, and job arguments
Variables
Understand runtime variables and how to pass data to workflows
Responses
Access job outputs and chain data between jobs
Dependency injection
Use PSR-11 containers to inject dependencies into Action classes