PHPackages                             swilson1337/yii2-wizard - 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. swilson1337/yii2-wizard

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

swilson1337/yii2-wizard
=======================

Yii2 extension to handle multi-form wizards

v1.0.3(7y ago)070BSD-3-ClausePHP

Since Jul 26Pushed 7y ago1 watchersCompare

[ Source](https://github.com/swilson1337/yii2-wizard)[ Packagist](https://packagist.org/packages/swilson1337/yii2-wizard)[ RSS](/packages/swilson1337-yii2-wizard/feed)WikiDiscussions master Synced yesterday

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

yii2-wizard
===========

[](#yii2-wizard)

Yii2 Extension to handle multi-form wizards.

Features
--------

[](#features)

- All forms submit to the same route - user friendly URLs
- Next/Previous or Forward Only navigation - registration forms will probably use Next/Previous navigation; tests will probably use Forward Only
- Looping - repeat one or more steps on a form as many times as needed
- Plot Branching Navigation (PBN) - allows the form to decide which path to take depending on a user's response to questions
- Step timeout - steps can have a timeout to ensure a user responds within a given time
- Save/Restore - save partially completed forms then restore and continue from that point later
- Event driven - write the handler functions and hook them up to events

For license information see the [LICENSE](LICENSE.md)-file.

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist beastbytes/yii2-wizard

```

or add

```
"beastbytes/yii2-wizard": "*"
```

to the require section of your composer.json.

Usage
-----

[](#usage)

Below is a very short overview of how to use the extension; the examples folder shows how to implement PBN, looping, forward only navigation, and step timeout in examples of a quiz, survey, and registration.

Attach WizardBehavior to a controller.

The controller contains the event handlers; the two most important events are WizardBehavior::EVENT\_WIZARD\_STEP and WizardBehavior::EVENT\_AFTER\_WIZARD, these are responsible for handling the steps of the wizard and processing the data at the end of the wizard respectively.

### Controller Action

[](#controller-action)

The controller action is very simple:

```
public function actionWizard($step = null)
{
    return $this->step($step);
}
```

### WizardBehavior::EVENT\_WIZARD\_STEP

[](#wizardbehaviorevent_wizard_step)

This event's handler is responsible for validating submitted data and deciding in what direction the Wizard should proceed; this and the data to be stored is placed into the event. When the event is marked as handled by handler the wizard will take the appropriate action.

### WizardBehavior::EVENT\_AFTER\_WIZARD

[](#wizardbehaviorevent_after_wizard)

The handler for this event is responsible for taking the required action once the Wizard has completed; this could be rendering a page based on the user input and/or saving the data to persistant storage.

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 55.6% 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 ~427 days

Total

4

Last Release

2662d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9230f9c418ed7fd87db91aee7309bee4e005d64405ceaecb009c4201ca415348?d=identicon)[swilson1337](/maintainers/swilson1337)

---

Top Contributors

[![beastbytes](https://avatars.githubusercontent.com/u/1470144?v=4)](https://github.com/beastbytes "beastbytes (5 commits)")[![swilson1337](https://avatars.githubusercontent.com/u/4252021?v=4)](https://github.com/swilson1337 "swilson1337 (3 commits)")[![freezy-sk](https://avatars.githubusercontent.com/u/661637?v=4)](https://github.com/freezy-sk "freezy-sk (1 commits)")

---

Tags

yii2BehaviorformFormswizard

### Embed Badge

![Health badge](/badges/swilson1337-yii2-wizard/health.svg)

```
[![Health](https://phpackages.com/badges/swilson1337-yii2-wizard/health.svg)](https://phpackages.com/packages/swilson1337-yii2-wizard)
```

###  Alternatives

[mdmsoft/yii2-autonumber

Auto number extension for the Yii framework

1830.9k](/packages/mdmsoft-yii2-autonumber)[baibaratsky/yii2-serialized-attributes-behavior

Yii2 Serialized Attributes Behavior

1174.1k9](/packages/baibaratsky-yii2-serialized-attributes-behavior)[asinfotrack/yii2-audittrail

Yii2-audittrail is a behavior and a set of widgets to track all modifications performed on a model

1727.0k](/packages/asinfotrack-yii2-audittrail)

PHPackages © 2026

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