PHPackages                             ahmedebead/workflow-manager - 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. ahmedebead/workflow-manager

ActiveLibrary

ahmedebead/workflow-manager
===========================

20PHP

Since Aug 7Pushed 1y ago1 watchersCompare

[ Source](https://github.com/ahmed3bead/workflow-manager)[ Packagist](https://packagist.org/packages/ahmedebead/workflow-manager)[ RSS](/packages/ahmedebead-workflow-manager/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

[![Workflow Manager Logo](https://raw.githubusercontent.com/ahmed3bead/workflow-manager/main/src/210139313-43f0d7ed-2005-4b71-9149-540f124c2c2f.png)](https://raw.githubusercontent.com/ahmed3bead/workflow-manager/main/src/210139313-43f0d7ed-2005-4b71-9149-540f124c2c2f.png)

Workflow Manager Documentation
==============================

[](#workflow-manager-documentation)

- [Introduction](#introduction)
- [Installation](#installation)
- [Configuration](#configuration)
- [Commands](#commands)
- [Features](#features)
- [Contributing](#contributing)
- [Changelog](#changelog)
- [License](#license)
- [Contact](#contact)

Introduction
------------

[](#introduction)

**Workflow Manager** is a powerful Laravel package designed to streamline and automate workflow management within your Laravel application. Whether you're managing complex business processes or simple task sequences, this package provides a robust and flexible solution.

With **Workflow Manager**, you can:

- **Define Workflows:** Easily set up workflows that model your application's processes, linking various conditions and actions.
- **Create and Manage Conditions:** Define custom conditions that control when actions should be executed, providing fine-grained control over your workflows.
- **Define and Execute Actions:** Implement actions that are triggered by specific conditions, automating repetitive tasks and ensuring smooth process execution.
- **Queueable Actions:** Optionally make actions queueable to enhance performance and reliability.
- **Visualize Workflows:** Export your workflows to flowcharts, providing a clear, visual representation of your processes.

The package integrates seamlessly with Laravel's existing features, allowing you to leverage its power without adding unnecessary complexity to your application. By using **Workflow Manager**, you can enhance the maintainability, scalability, and efficiency of your application’s workflows.

Get started quickly with simple commands and intuitive configuration, and explore advanced features as needed to fit your specific use cases.

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

[](#installation)

To install Workflow Manager, use Composer:

```
composer require ahmedebead/workflow-manager

```

Configuration
-------------

[](#configuration)

Publish the configuration file with the following Artisan command:

```
php artisan vendor:publish --tag=config
```

This will create a `config/workflow.php` file where you can define your workflows, conditions, and actions.

Commands
--------

[](#commands)

### Create Workflow

[](#create-workflow)

Generates a new workflow and updates the configuration file and Create the necessary folders for the workflow classes in app/Workflows.

**Usage:**

```
php artisan workflow:create
```

**Example:**

```
Enter the workflow name: OrderWorkflow
Enter the model class for this workflow (e.g., \App\Models\User): \App\Models\Order
Workflow 'OrderWorkflow' created successfully.

```

### Create Condition

[](#create-condition)

Creates a new condition class for a workflow.

**Usage:**

```
php artisan workflow:condition
```

**Example:**

```
Enter the workflow name: OrderWorkflow
Enter the condition name: IsPending
Condition 'IsPending' created successfully.

```

***Example condition:***

```
