Download the PHP package token27/nexus-ai-workflows without Composer
On this page you can find all versions of the php package token27/nexus-ai-workflows. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download token27/nexus-ai-workflows
More information about token27/nexus-ai-workflows
Files in token27/nexus-ai-workflows
Package nexus-ai-workflows
Short Description AI-native workflow engine with graph orchestration, resumable execution, nodes, guards, middleware, persistence, and observability.
License MIT
Homepage https://github.com/token27/nexus-ai-workflows
Informations about the package nexus-ai-workflows
NexusAI Workflows
A graph-based workflow orchestration engine for PHP 8.3+. Define directed workflow graphs of nodes: AI calls, tool executions, conditionals, loops, parallel branches, waits, and sub-workflows. Run them with middleware, guards, persistence stores, resumable execution, and observability.
Built on top of NexusAI for seamless LLM integration.
Features
- Fluent WorkflowBuilder: declarative, chainable API for constructing workflow graphs
- 8 node types: ActionNode, AINode, ToolNode, ConditionNode, LoopNode, ParallelNode, WaitNode, SubWorkflowNode
- WorkflowRunner: executes graphs following transitions until completion, failure, or suspension
- Resumable execution: WaitNode suspends a workflow and
resume()continues from the suspended node without re-running previous steps - Transition guards: ExpressionGuard closures and AIGuard LLM-based decisions
- Middleware pipeline: onion architecture for cross-cutting concerns per step
- Persistence stores: FileWorkflowStore, CacheWorkflowStore, and InMemoryWorkflowStore for workflow snapshots
- Observability: EventBus integration with typed workflow event DTOs
- FakeWorkflowRunner: testing without HTTP calls, with assertion helpers
- Immutable context: thread-safe WorkflowContext that flows through nodes
Installation
Requires nexus-ai as a dependency:
Quick Start
Examples
Runnable examples are available in examples/:
01-basic-action-workflow.php: pure PHP workflow without AI calls02-fake-ai-workflow.php: test an AI workflow withFakeWorkflowRunner03-suspend-resume-tasks.php: CakePHP-style multi-task suspend/resume flow04-branch-loop-workflow.php: branching and loops
Run one locally after composer install:
Documentation
Full documentation is available in the docs/ directory:
- Getting Started
- WorkflowBuilder
- Node Types
- Transitions & Guards
- WorkflowRunner
- Context & State
- Persistence
- Observability
- Testing
Architecture
Requirements
- PHP 8.3 or higher
- token27/nexus-ai ^1.0
License
MIT. Please see LICENSE for more information.
All versions of nexus-ai-workflows with dependencies
psr/log Version ^3.0
psr/simple-cache Version ^3.0
token27/nexus-ai Version ^1.0