PHPackages                             raoul2000/yii2-workflow-view - 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. [Templating &amp; Views](/categories/templating)
4. /
5. raoul2000/yii2-workflow-view

ActiveYii2-extension[Templating &amp; Views](/categories/templating)

raoul2000/yii2-workflow-view
============================

A simple widget to display your workflows

0.0.2(10y ago)1638.8k↓38.9%6[4 issues](https://github.com/raoul2000/yii2-workflow-view/issues)20BSD-3-ClausePHPPHP &gt;=5.4.0

Since Aug 22Pushed 8y ago5 watchersCompare

[ Source](https://github.com/raoul2000/yii2-workflow-view)[ Packagist](https://packagist.org/packages/raoul2000/yii2-workflow-view)[ Docs](http://www.yiiframework.com/)[ RSS](/packages/raoul2000-yii2-workflow-view/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (3)Versions (3)Used By (20)

**PROOF OF CONCEPT - NOT ACTIVELY MAINTAINED**

yii2-workflow-view
==================

[](#yii2-workflow-view)

[![Latest Stable Version](https://camo.githubusercontent.com/f2c72e56ee2c6948b974d05385d1c4c7ab89b233c4d045413f0f045f247d24fd/68747470733a2f2f706f7365722e707567782e6f72672f72616f756c323030302f796969322d776f726b666c6f772d766965772f762f737461626c65)](https://packagist.org/packages/raoul2000/yii2-workflow-view)[![Total Downloads](https://camo.githubusercontent.com/157881006f5977442abe4aa9282b8e8ce5e804d7222493deaad4c617e50dec19/68747470733a2f2f706f7365722e707567782e6f72672f72616f756c323030302f796969322d776f726b666c6f772d766965772f646f776e6c6f616473)](https://packagist.org/packages/raoul2000/yii2-workflow-view)[![License](https://camo.githubusercontent.com/68caded038157f70b50832fca329df9d46f01a091038a2609809d2b51c47e46e/68747470733a2f2f706f7365722e707567782e6f72672f72616f756c323030302f796969322d776f726b666c6f772f6c6963656e7365)](https://packagist.org/packages/raoul2000/yii2-workflow-view)

*A Widget to display workflows created with [yii2-workflow](https://github.com/raoul2000/yii2-workflow)*

Checkout the [demo](http://raoul2000.good-gamer.net/index.php?r=workflow/view)

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist raoul2000/yii2-workflow-view "*"

```

or add

```
"raoul2000/yii2-workflow-view": "*"

```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

To display a workflow with the widget, you must have ... a workflow to display ! Once you have it, just assign it to the `workflow` parameter of the `WorkflowViewWidget`.

In the example below we are assuming that the `Post` model is attached to a `SimpleWorkflowBehavior` and that it has been correctly initialized.

```
