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

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

hjp1011/yii2-workflow-view
==========================

A simple widget to display your workflows

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

Since May 14Pushed 2y ago1 watchersCompare

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

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

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

[](#yii2-workflow-view)

[![Latest Stable Version](https://camo.githubusercontent.com/768a053c750a8c4e58d491558a0ca5b18578630660d822c900ca7d388152f99e/68747470733a2f2f706f7365722e707567782e6f72672f686a70313031312f796969322d776f726b666c6f772d766965772f762f737461626c65)](https://packagist.org/packages/hjp1011/yii2-workflow-view)[![Total Downloads](https://camo.githubusercontent.com/d0b6e86495f6ab5a4e520d249a1bb421efe0c625a2a74513d4095b723c93bfad/68747470733a2f2f706f7365722e707567782e6f72672f686a70313031312f796969322d776f726b666c6f772d766965772f646f776e6c6f616473)](https://packagist.org/packages/hjp1011/yii2-workflow-view)[![License](https://camo.githubusercontent.com/c1ae950de6950b8349c539b28b7209fa51554d38d7e11cb51c330d6573278775/68747470733a2f2f706f7365722e707567782e6f72672f686a70313031312f796969322d776f726b666c6f772f6c6963656e7365)](https://packagist.org/packages/hjp1011/yii2-workflow-view)

*A Widget to display workflowS created with [yii2-workflow](https://github.com/hjp1011/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 hjp1011/yii2-workflow-view "*"

```

or add

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

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

```
