PHPackages                             jinowom/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. jinowom/yii2-workflow-view

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

jinowom/yii2-workflow-view
==========================

A simple widget to display your workflows

1.0.0(3y ago)0201BSD-3-ClausePHPPHP &gt;=5.4.0

Since Oct 30Pushed 3y agoCompare

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

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

**PROOF OF CONCEPT - NOT ACTIVELY MAINTAINED**

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

[](#yii2-workflow-view)

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

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

[](#installation)

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

Either run

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

```

or add

```
"jinowom/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.

```
