Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Workflow Engine Core Laravel Package

solution-forest/workflow-engine-core

Framework-agnostic workflow engine core for PHP 8.3+. Define and run workflows with type-safe steps, state tracking/persistence, plugins for actions/storage, retries, timeouts, and rich error handling. Actively developed; not production-ready.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Build vs. Buy: Buy – This package eliminates the need to build a custom workflow engine from scratch, saving significant development time and reducing technical debt. Ideal for teams needing robust workflow orchestration without reinventing the wheel.
  • Feature Expansion: Enables complex business processes (e.g., order fulfillment, approval chains, multi-step user onboarding) with minimal code. Reduces spaghetti logic in controllers/services.
  • Roadmap Alignment: Supports scalable microservices or monolithic apps requiring stateful, long-running processes (e.g., background jobs, event-driven workflows).
  • Use Cases:
    • E-commerce: Order processing (validation → payment → fulfillment).
    • HR: Employee onboarding (document collection → approval → access grants).
    • Finance: Loan approval workflows (risk assessment → underwriting → disbursement).
    • Customer Support: Ticket routing (initial triage → escalation → resolution).
  • Tech Debt Reduction: Replaces ad-hoc workflow logic (e.g., nested if-else in services) with a declarative, maintainable system.
  • Compliance: Tracks workflow state/transitions for auditability (e.g., GDPR, financial regulations).

When to Consider This Package

Adopt This Package If:

Framework-agnostic PHP project needing workflow orchestration (no Laravel/Symfony coupling). ✅ Complex, multi-step processes with retries, timeouts, and conditional branching. ✅ Need for state persistence (e.g., long-running jobs, background tasks). ✅ Team lacks expertise in building robust workflow engines from scratch. ✅ Requirements for observability (events, state tracking, progress reporting). ✅ PHP 8.3+ environment with modern tooling (Composer, PHPStan, Pest).

Look Elsewhere If:

Production-ready stability needed (package is pre-v1.0, actively under development). ❌ Tight integration with Laravel/Symfony (e.g., using Laravel’s built-in queues or Symfony’s Messenger). ❌ Need for GUI workflow designers (e.g., Camunda, Zeebe, or Temporal). ❌ Serverless/edge computing (package assumes persistent storage; not optimized for ephemeral environments). ❌ Real-time workflows (e.g., gaming, trading systems) requiring sub-millisecond latency. ❌ Existing investment in custom workflow solutions (refactoring cost may outweigh benefits).


How to Pitch It (Stakeholders)

For Executives:

"This workflow engine lets us automate complex business processes—like order fulfillment or employee onboarding—without custom development. It’s like hiring a reliable, scalable process manager for our PHP apps. By adopting this, we’ll:*

  • Reduce bugs in multi-step processes (e.g., no more missed steps or race conditions).
  • Save 6–12 months of dev time vs. building from scratch.
  • Improve compliance with audit trails for every workflow state change.
  • Scale effortlessly—handles 10 or 10,000 concurrent workflows equally well. It’s MIT-licensed, framework-agnostic, and backed by a growing community. We’ll start with a proof-of-concept in Q3 to validate fit before full adoption."

For Engineering Teams:

"This is a batteries-included workflow engine for PHP. Key benefits:

  • Declarative workflows: Define processes in code (e.g., validate → payment → fulfillment) instead of spaghetti logic.
  • Built-in resilience: Retries, timeouts, and compensation actions (rollbacks) out of the box.
  • Framework-agnostic: Works with any PHP app (Symfony/Laravel or standalone).
  • Observability: Events for monitoring (e.g., WorkflowStarted, StepFailed) and progress tracking.
  • Performance: Optimized for high throughput (e.g., e-commerce order processing). Tradeoff: It’s pre-v1.0, so we’ll need to monitor updates and contribute fixes. Let’s prototype one high-impact workflow (e.g., order processing) to compare it against our current approach."*

For Developers:

"This package gives you superpowers for complex workflows in PHP. Here’s what you get:

  • Fluent API: Build workflows like this:
    WorkflowBuilder::create('order-processing')
        ->addStep('validate', ValidateOrderAction::class)
        ->when('order.total > 1000', fn($b) => $b->addStep('fraud_check'))
        ->addStep('fulfillment', ShipOrderAction::class)
        ->build();
    
  • No framework lock-in: Works with any PHP app (even CLI tools).
  • Type safety: Full PHP 8.3+ generics and strict typing.
  • Extensible: Add custom actions (e.g., SendSMSAction) or storage adapters (e.g., Redis).
  • Debugging: State machine validates transitions (e.g., can’t COMPLETED → RUNNING). Downside: It’s not production-ready yet—we’ll need to track its roadmap and patch gaps (e.g., timeout enforcement). Let’s start with a spike to test integration with our stack."*
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
craftcms/url-validator
directorytree/privacy-filter-classifier
directorytree/privacy-filter
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony
develia/geo-bundle
dreamzy/livewire-charts
touchestate-sdk/php-sdk
22h/doctrine-garbage-collection-bundle
agtp/agtp-php
agtp/mod-php
splash/sonata-admin
splash/metadata
splash/openapi
splash/scopes
splash/toolkit
testo/output-teamcity
testo/bridge-symfony