PHPackages                             offworks/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. [CLI &amp; Console](/categories/cli)
4. /
5. offworks/wizard

ActiveLibrary[CLI &amp; Console](/categories/cli)

offworks/wizard
===============

A simple wizard capable console based on symfony/console

09PHP

Since Jul 2Pushed 8y ago1 watchersCompare

[ Source](https://github.com/offworks/wizard)[ Packagist](https://packagist.org/packages/offworks/wizard)[ RSS](/packages/offworks-wizard/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Offworks\\Wizard
================

[](#offworkswizard)

A simple wizard capable console based on symfony/console.

### What's new?

[](#whats-new)

Nothing new. Except changes in a way command is handled. And added WizardCommand which helps you execute symfony commands interactively.

### Why

[](#why)

Because there's a time when you don't feel like remembering things you do with command. The WizardCommand leverage through the use of argument(s) and option(s) setting of the command.

Installation
============

[](#installation)

```
composer require offworks/wizard

```

Usages
======

[](#usages)

Set up your wizard
------------------

[](#set-up-your-wizard)

```
$wizard = \Offworks\Wizard\Console::createWizard();

// add your command in between.

$wizard->run();
```

Defining your command
---------------------

[](#defining-your-command)

Extends the abstract class `Offworks\Wizard\Command`, and implements setup() and handle() methods.

```
