PHPackages                             jawaraegov/workflows - 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. jawaraegov/workflows

ActiveLibrary

jawaraegov/workflows
====================

The Workflow package for manage state and transition

07PHP

Since Jul 18Pushed 6y agoCompare

[ Source](https://github.com/etanasia/workflows)[ Packagist](https://packagist.org/packages/jawaraegov/workflows)[ RSS](/packages/jawaraegov-workflows/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Welcome to Jawaraegov/workflows!
================================

[](#welcome-to-jawaraegovworkflows)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/d5a7dd7a3bcc4947ac0249c3d80f10135f646ffc458d13ce434b3d9977a939f2/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6574616e617369612f776f726b666c6f77732f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/etanasia/workflows/?branch=master)[![Build Status](https://camo.githubusercontent.com/7b90c7d8642d5c5874fecb624509037a2531e2ed1bd4332ecb55028768c0b218/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6574616e617369612f776f726b666c6f77732f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/etanasia/workflows/build-status/master)

Workflow Management
===================

[](#workflow-management)

Workflow management for easily manage states and transitions in a complex business prosess.

The final of this package will be contained some awesome feature:

- Workflow
- Workflow State
- Workflow Transition
- Workflow Notification
- Workflow Guard
- Transition Attachment
- Attachment
- Notification To
- Notification cc
- History

Workflow Management
===================

[](#workflow-management-1)

Workflow management for easily manage states and transitions in a complex business prosess.

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/d5a7dd7a3bcc4947ac0249c3d80f10135f646ffc458d13ce434b3d9977a939f2/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6574616e617369612f776f726b666c6f77732f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/etanasia/workflows/?branch=master)[![Build Status](https://camo.githubusercontent.com/7b90c7d8642d5c5874fecb624509037a2531e2ed1bd4332ecb55028768c0b218/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6574616e617369612f776f726b666c6f77732f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/etanasia/workflows/build-status/master)

The final of this package will be contained some awesome feature:

Worklow
-------

[](#worklow)

- Define a name and descriotion of the workflow, each conte type could containt more then one workflow to manage their business process

State
-----

[](#state)

- Define a collection of state name in worflow related, and describe the latest status the content in a business process

Transition
----------

[](#transition)

- Define a transition of any state in content, this feature will be handle move transition

Guard
-----

[](#guard)

- Guard give a permission to manage one or any authorization of the role management to the transition related

Notification
------------

[](#notification)

- When a state of content was change, or a transition executed a notification will be sent by system to pic related. notification displayed in user desktop related and as mail notification.

TODO
----

[](#todo)

See [TODO](https://github.com/etanasia/workflows/blob/master/TODO.md) before use this.

Install Laravel :
-----------------

[](#install-laravel-)

```
$ composer create-project --prefer-dist laravel/laravel project-name "5.4.*"
```

Install package :
-----------------

[](#install-package-)

```
$ composer require jawaraegov/workflows:dev-master
```

Edit config/config.php
----------------------

[](#edit-configconfigphp)

Edit config/app.php
-------------------

[](#edit-configappphp)

### providers

[](#providers)

```
'providers' => [
    ...
    App\Providers\AppServiceProvider::class,
    App\Providers\AuthServiceProvider::class,
    App\Providers\EventServiceProvider::class,
    App\Providers\RouteServiceProvider::class,
    ...
    Collective\Html\HtmlServiceProvider::class,
    'That0n3guy\Transliteration\TransliterationServiceProvider',
    Jawaraegov\Workflows\WorkflowServiceProvider::class,
```

### aliases

[](#aliases)

```
'aliases' => [
    ...
    'Storage' => Illuminate\Support\Facades\Storage::class,
    'URL' => Illuminate\Support\Facades\URL::class,
    'Validator' => Illuminate\Support\Facades\Validator::class,
    'View' => Illuminate\Support\Facades\View::class,
    ...
    'Form' => Collective\Html\FormFacade::class,
    'Html' => Collective\Html\HtmlFacade::class,
    'Workflow' => Jawaraegov\Workflows\Facades\Workflow::class,
```

Artisan command :
-----------------

[](#artisan-command-)

```
$ php artisan vendor:publish --tag=workflow_migrations
$ php artisan vendor:publish --tag=workflow_views
$ php artisan vendor:publish --tag=workflow_css
$ php artisan vendor:publish --tag=workflow_js
$ php artisan migrate
$ php artisan jawaraegov:workflow:seed
```

Contoh penggunaan :
-------------------

[](#contoh-penggunaan-)

### Trait :

[](#trait-)

#### **1. WorkflowStateTrait**

[](#1-workflowstatetrait)

```
use Jawaraegov\Workflows\Traits\WorkflowStateTrait;

class WorkflowStateController extends Controller
{
    use WorkflowStateTrait;

    public function index()
    {
        return WorkflowStateTrait::stateIndex();
    }
}
```

#### **2. WorkflowTransitionTrait**

[](#2-workflowtransitiontrait)

```
use Jawaraegov\Workflows\Traits\WorkflowTransitionTrait;

class WorkflowTransitionController extends Controller
{
    use WorkflowTransitionTrait;

    public function index()
    {
        return WorkflowStateTrait::transitionIndex();
    }
}
```

### **WorkflowStateTrait sample**

[](#workflowstatetrait-sample)

  \#
 Method NULL Default Ex Type   1 stateIndex($page = 10) Y 10 $page=10 Integer   2 stateCreate() Y - - -   3 stateStore($request,= array()) N - $request-&gt;all() Array
   4 stateEdit($id) N -
 $id = 1
 Integer
   5 stateUpdate($request= array(), $id) N -
 $request-&gt;all()
$id = 1
 Array   6 stateActive($id) N - $id = 1
 Integer   7 stateDeActive($id) N - $id = 1
 Integer

### **WorkflowTransitionTrait sample**

[](#workflowtransitiontrait-sample)

  \#
 Method NULL Default Ex Type   1 transitionIndex($page = 10) Y 10 $page=10 Integer   2 transitionCreate() Y - - -   3 transitionStore($request = array()) N - $request-&gt;all() Array
   4 transitionEdit($id) N -
 $id = 1
 Integer
   5 transitionUpdate($request = array(), $id) N -
 $request-&gt;all()
$id = 1
 Array   6 transitionActive($id) N - $id = 1
 Integer   7 transitionDeActive($id) N - $id = 1
 Integer #### **Contoh 2**

[](#contoh-2)

> pada aplikasi yang digunakan

```
//Controller
use Jawaraegov\Workflows\Workflow
...
public function SOMETHING()
{
    $id = 1;
    return \Workflow::getStateName($id);
}
```

```
//Controller
use Jawaraegov\Workflows\Workflow
...
public function SOMETHING()
{
    $id = 1;
    return \Workflow::getTransitionName($id);
}
```

### CSS

[](#css)

folder style.css : public/css/style.css

```

        Laravel

  -->
```

### JS

[](#js)

folder custom.js : public/js/custom.js

```

  -->

```

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/ff827fe82e885234ca28326b4a990ca3d8c07ddbe71946c165471e9369c051b4?d=identicon)[etanasia](/maintainers/etanasia)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/jawaraegov-workflows/health.svg)

```
[![Health](https://phpackages.com/badges/jawaraegov-workflows/health.svg)](https://phpackages.com/packages/jawaraegov-workflows)
```

PHPackages © 2026

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