beastbytes / wizard
Multi-part form handler
v2.0.0
2023-09-03 21:30 UTC
Requires
- php: ^8.0
- httpsoft/http-message: ^1.0
- psr/event-dispatcher: ^1.0
- yiisoft/arrays: ^3.0
- yiisoft/data-response: ^2.0
- yiisoft/friendly-exception: ^1.0
- yiisoft/router-fastroute: ^3.0
- yiisoft/session: ^2.0
- yiisoft/yii-http: ^1.0
Requires (Dev)
- phpunit/phpunit: ^10.0
- roave/infection-static-analysis-plugin: ^1.0
- roave/security-advisories: dev-latest
- vimeo/psalm: ^5.0
- yiisoft/event-dispatcher: ^1.0
- yiisoft/test-support: ^3.0
- yiisoft/yii-view: ^6.0
README
Wizard simplifies the handling of multistep forms.
Features
- All forms submit to the same controller/action
- Allow returning to earlier steps or enforce forward only navigation
- Looping - repeat one or more steps as many times as needed
- Plot Branching Navigation (PBN) - decide which path to take depending on the user's response
- Step Timeout - steps can have a timeout to ensure a user responds within a given time
- Pause/resume - save partially completed Wizards; restore and continue from that point
- Event driven - write the handler functions and hook them up to Wizard events
Installation
Install Wizard using Composer
Add the following to the require section of your composer.json:
"beastbytes/wizard": "*"
or run
php composer.phar require -dev "beastbytes/wizard:*"