PHPackages                             nowi5/laravel-workflow - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. nowi5/laravel-workflow

ActiveLibrary[Framework](/categories/framework)

nowi5/laravel-workflow
======================

Workflow Engine for Laravel

0.0.2(2y ago)05MITPHPPHP ^8.0.2

Since Aug 7Pushed 2y ago1 watchersCompare

[ Source](https://github.com/Nowi5/laravel-workflow)[ Packagist](https://packagist.org/packages/nowi5/laravel-workflow)[ RSS](/packages/nowi5-laravel-workflow/feed)WikiDiscussions main Synced yesterday

READMEChangelog (2)Dependencies (5)Versions (3)Used By (0)

Laravel Workflow Jobs Package
=============================

[](#laravel-workflow-jobs-package)

The Laravel Workflow Jobs package allows you to effortlessly create workflows that run as jobs with robust logging capabilities. Use this package to design, execute, and monitor workflow processes using Laravel jobs and enjoy a seamless experience with dynamic parameter passing and custom logic evaluations.

Installation
------------

[](#installation)

1. Install the package via composer:

    ```
    composer require laravel-workflow-jobs-package

    ```
2. Publish the config file:

    ```
    php artisan vendor:publish --provider="Workflow\WorkflowServiceProvider"

    ```
3. Run migrations (if needed) to set up the required tables for logging and management:

    ```
    php artisan migrate

    ```

Usage
-----

[](#usage)

### Creating a Workflow

[](#creating-a-workflow)

To create a workflow, you can define it as shown in the example:

```
namespace  App\Workflow;

use App\Jobs\WorkflowStepJob;
use Workflow\Workflow;

class ExampleWorkflow extends Workflow {

    public $name = "TestWorkflow";
    public $version = "1.0.0";

    public function execute(){
        // Adding steps to the workflow
        $this->addStep("step1", WorkflowStepJob::class, ["param1" => "some value"]);

        // Setting the logic for the workflow
        $this->addLogic("step1", "step2");
    }
}
```

### Running a Workflow

[](#running-a-workflow)

After defining your workflow, you can start and fetch its JSON representation:

```
$workflow = new ExampleWorkflow();
$workflow->start("Hello Test");
$workflowjson = $workflow->getJson();
return response("".$workflowjson."", 200);
```

### Creating a Workflow Step (Job)

[](#creating-a-workflow-step-job)

Each step in a workflow corresponds to a Laravel job. To create a custom workflow job:

```
namespace App\Jobs;

use Workflow\Jobs\WorkflowJob;

class WorkflowStepJob extends WorkflowJob {

    public $name = "Example Step Name"; // Keep this unique
    public $version = "1.0.0";

    public function execute() {
        $content = "Hello Custom Workflow, " . now() . "\n";
        return ['content' => $content];
    }
}
```

Dynamic Parameter Passing
-------------------------

[](#dynamic-parameter-passing)

You can pass parameters from one step's output to another's input dynamically using the format `%stepName.parameterName%`:

```
$this->addStep("step2", WorkflowStepJob::class, ["param1" => "%step1.randomNumber%"]);
```

Custom Logic Evaluation
-----------------------

[](#custom-logic-evaluation)

You can also define custom logic evaluations to determine which step to execute next based on the output of the previous steps: Defining own logic for the workflow as well as adding logic at all is optional. If no logic is defined, the workflow will execute all steps in the order they were added.

```
$this->addLogic("step3", null, [
["evaluate" => "%step2.outputParameterName%", "comparison" => "=50", "next" => "step4"]
]);
```

Contributing
------------

[](#contributing)

If you'd like to contribute to this project, please submit a PR or open an issue. We appreciate any feedback or improvements!

License
-------

[](#license)

This package is open-source software licensed under the MIT license.

Notes
-----

[](#notes)

"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. Laravel Workflow is not officially related to the Laravel trademark or Taylor Otwell.

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

1063d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/27913135?v=4)[Nowi5](/maintainers/Nowi5)[@Nowi5](https://github.com/Nowi5)

---

Top Contributors

[![Nowi5](https://avatars.githubusercontent.com/u/27913135?v=4)](https://github.com/Nowi5 "Nowi5 (7 commits)")

###  Code Quality

Static AnalysisRector

Code StyleECS

### Embed Badge

![Health badge](/badges/nowi5-laravel-workflow/health.svg)

```
[![Health](https://phpackages.com/badges/nowi5-laravel-workflow/health.svg)](https://phpackages.com/packages/nowi5-laravel-workflow)
```

###  Alternatives

[laravel/octane

Supercharge your Laravel application's performance.

4.0k26.6M223](/packages/laravel-octane)[unopim/unopim

UnoPim Laravel PIM

10.5k2.4k](/packages/unopim-unopim)[code16/sharp

Laravel Content Management Framework

79164.7k8](/packages/code16-sharp)[ecotone/laravel

Ecotone for Laravel — CQRS, Event Sourcing, Sagas, Durable Workflows, and Outbox on top of Laravel Queue, via PHP attributes.

21318.6k3](/packages/ecotone-laravel)[codewithdennis/larament

Larament is a time-saving starter kit to quickly launch Laravel 13.x projects. It includes FilamentPHP 5.x pre-installed and configured, along with additional tools and features to streamline your development workflow.

3991.8k](/packages/codewithdennis-larament)[r2luna/brain

Brain: A process-driven architecture alternative for your Laravel Application.

6338.7k1](/packages/r2luna-brain)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
