PHPackages                             bantenprov/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. bantenprov/workflow

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

bantenprov/workflow
===================

The Workflow package for manage state and transition

1.0.1(8y ago)018081MITPHPPHP &gt;=5.6.4

Since Nov 23Pushed 8y ago4 watchersCompare

[ Source](https://github.com/bantenprov/workflow)[ Packagist](https://packagist.org/packages/bantenprov/workflow)[ Docs](https://github.com/bantenprov/workflow)[ RSS](/packages/bantenprov-workflow/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (3)Versions (5)Used By (1)

[![Join the chat at https://gitter.im/bantenprov-workflow/Lobby](https://camo.githubusercontent.com/80dde5eca45303a66203945dd87f4ac72fe0d841a4030284727e6b983f17b3b2/68747470733a2f2f6261646765732e6769747465722e696d2f62616e74656e70726f762d776f726b666c6f772f4c6f6262792e737667)](https://gitter.im/bantenprov-workflow/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/dd5a25332b7895f4a6df144a4f4a8a1b41c0e207f2913db30ea7bd536e931d04/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f62616e74656e70726f762f776f726b666c6f772f6261646765732f7175616c6974792d73636f72652e706e673f623d312e30)](https://scrutinizer-ci.com/g/bantenprov/workflow/?branch=1.0)[![Build Status](https://camo.githubusercontent.com/ddfb151976bb3ed99a594dec0057fdfdff400dd94f8742aa9fff837a4ffc7a8a/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f62616e74656e70726f762f776f726b666c6f772f6261646765732f6275696c642e706e673f623d312e30)](https://scrutinizer-ci.com/g/bantenprov/workflow/build-status/1.0)

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)

[![Join the chat at https://gitter.im/bantenprov-workflow/Lobby](https://camo.githubusercontent.com/80dde5eca45303a66203945dd87f4ac72fe0d841a4030284727e6b983f17b3b2/68747470733a2f2f6261646765732e6769747465722e696d2f62616e74656e70726f762d776f726b666c6f772f4c6f6262792e737667)](https://gitter.im/bantenprov-workflow/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)Workflow management for easily manage states and transitions in a complex business prosess.

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/dd5a25332b7895f4a6df144a4f4a8a1b41c0e207f2913db30ea7bd536e931d04/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f62616e74656e70726f762f776f726b666c6f772f6261646765732f7175616c6974792d73636f72652e706e673f623d312e30)](https://scrutinizer-ci.com/g/bantenprov/workflow/?branch=1.0)[![Build Status](https://camo.githubusercontent.com/ddfb151976bb3ed99a594dec0057fdfdff400dd94f8742aa9fff837a4ffc7a8a/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f62616e74656e70726f762f776f726b666c6f772f6261646765732f6275696c642e706e673f623d312e30)](https://scrutinizer-ci.com/g/bantenprov/workflow/build-status/1.0)

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/bantenprov/workflow/blob/1.0/TODO.md) before use this.

DEMO
----

[](#demo)

Demo site for this packages is available here : [Workflow](http://workflow-01.dev.bantenprov.go.id/).

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

[](#install-laravel-)

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

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

[](#install-package-)

```
$ composer require bantenprov/workflow "1.0.0"
```

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',
    Bantenprov\Workflow\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' => Bantenprov\Workflow\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
```

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

[](#contoh-penggunaan-)

### Trait :

[](#trait-)

#### **1. WorkflowStateTrait**

[](#1-workflowstatetrait)

```
use Bantenprov\Workflow\Traits\WorkflowStateTrait;

class WorkflowStateController extends Controller
{
    use WorkflowStateTrait;

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

#### **2. WorkflowTransitionTrait**

[](#2-workflowtransitiontrait)

```
use Bantenprov\Workflow\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 Bantenprov\Workflow\Workflow
...
public function SOMETHING()
{
    $id = 1;
    return \Workflow::getStateName($id);
}
```

```
//Controller
use Bantenprov\Workflow\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

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 61.1% 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 ~11 days

Total

3

Last Release

3072d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/811618334e937542bb0d5723158e05de7445bb5e8851ce086d6cc7a7c0146166?d=identicon)[bantenprov](/maintainers/bantenprov)

---

Top Contributors

[![andri-sudarmawijaya](https://avatars.githubusercontent.com/u/28795941?v=4)](https://github.com/andri-sudarmawijaya "andri-sudarmawijaya (33 commits)")[![bantenprov](https://avatars.githubusercontent.com/u/28588981?v=4)](https://github.com/bantenprov "bantenprov (15 commits)")[![feripratama](https://avatars.githubusercontent.com/u/32523275?v=4)](https://github.com/feripratama "feripratama (4 commits)")[![ahmadlab](https://avatars.githubusercontent.com/u/5886717?v=4)](https://github.com/ahmadlab "ahmadlab (1 commits)")[![gitter-badger](https://avatars.githubusercontent.com/u/8518239?v=4)](https://github.com/gitter-badger "gitter-badger (1 commits)")

### Embed Badge

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

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

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[illuminate/pipeline

The Illuminate Pipeline package.

9446.6M213](/packages/illuminate-pipeline)[illuminate/pagination

The Illuminate Pagination package.

10532.5M862](/packages/illuminate-pagination)[spatie/laravel-mix-preload

Add preload and prefetch links based your Mix manifest

169176.0k2](/packages/spatie-laravel-mix-preload)[mrmarchone/laravel-auto-crud

Laravel Auto CRUD helps you streamline development and save time.

28711.8k2](/packages/mrmarchone-laravel-auto-crud)[interaction-design-foundation/laravel-geoip

Support for multiple Geographical Location services.

17221.0k3](/packages/interaction-design-foundation-laravel-geoip)

PHPackages © 2026

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