yiggle / form-wizard-bundle
Multi-step forms for Sulu 3: visual builder, conditional fields, Mollie payments, email notifications and CSV export.
Package info
github.com/Predjee/form-wizard-bundle
Type:symfony-bundle
pkg:composer/yiggle/form-wizard-bundle
Requires
- php: ^8.4
- ext-ctype: *
- ext-filter: *
- ext-iconv: *
- ext-intl: *
- ext-mbstring: *
- doctrine/collections: ^2.2
- doctrine/dbal: ^4.5
- doctrine/doctrine-bundle: ^2.13 || ^3.0
- doctrine/migrations: ^3.8
- doctrine/orm: ^3.0
- doctrine/persistence: ^3.4 || ^4.0
- league/flysystem: ^3.0
- league/flysystem-local: ^3.0
- phpdocumentor/type-resolver: ^1.7 || ^2.0
- phpstan/phpdoc-parser: ^2.3
- psr/cache: ^2.0 || ^3.0
- psr/clock: ^1.0
- psr/container: ^2.0
- psr/log: ^3.0
- sulu/messenger: ^0.2 || ^1.0
- sulu/sulu: ^3.0
- symfony/clock: ^7.4 || ^8.0
- symfony/config: ^7.4 || ^8.0
- symfony/console: ^7.4 || ^8.0
- symfony/dependency-injection: ^7.4 || ^8.0
- symfony/deprecation-contracts: ^3.5
- symfony/event-dispatcher: ^7.4 || ^8.0
- symfony/event-dispatcher-contracts: ^3.5
- symfony/form: ^7.4 || ^8.0
- symfony/framework-bundle: ^7.4 || ^8.0
- symfony/html-sanitizer: ^7.4 || ^8.0
- symfony/http-client: ^7.4 || ^8.0
- symfony/http-client-contracts: ^3.5
- symfony/http-foundation: ^7.4 || ^8.0
- symfony/http-kernel: ^7.4 || ^8.0
- symfony/mailer: ^7.4 || ^8.0
- symfony/messenger: ^7.4 || ^8.0
- symfony/mime: ^7.4 || ^8.0
- symfony/options-resolver: ^7.4 || ^8.0
- symfony/routing: ^7.4 || ^8.0
- symfony/security-core: ^7.4 || ^8.0
- symfony/security-csrf: ^7.4 || ^8.0
- symfony/serializer: ^7.4 || ^8.0
- symfony/service-contracts: ^3.5
- symfony/stimulus-bundle: ^2.32
- symfony/translation: ^7.4 || ^8.0
- symfony/translation-contracts: ^3.5
- symfony/twig-bridge: ^7.4 || ^8.0
- symfony/twig-bundle: ^7.4 || ^8.0
- symfony/uid: ^7.4 || ^8.0
- symfony/ux-turbo: ^2.32
- symfony/validator: ^7.4 || ^8.0
- symfony/yaml: ^7.4 || ^8.0
- twig/intl-extra: ^3.0
- twig/twig: ^3.12
Requires (Dev)
- ext-tokenizer: *
- deptrac/deptrac: ^4.7
- doctrine/doctrine-migrations-bundle: ^3.7 || ^4.0
- doctrine/event-manager: ^2.0
- friendsofphp/php-cs-fixer: ^3.70
- mollie/mollie-api-php: ^3.9
- phpstan/extension-installer: ^1.4
- phpstan/phpstan: ^2.0
- phpstan/phpstan-doctrine: ^2.0
- phpstan/phpstan-phpunit: ^2.0
- phpstan/phpstan-symfony: ^2.0
- phpunit/phpunit: ^12
- rector/rector: ^2.0
- shipmonk/composer-dependency-analyser: ^1.8
- symfony/browser-kit: ^7.4 || ^8.0
- symfony/cache: ^7.4 || ^8.0
- symfony/dom-crawler: ^7.4 || ^8.0
- symfony/dotenv: ^7.4 || ^8.0
- symfony/filesystem: ^7.4 || ^8.0
- symfony/finder: ^7.4 || ^8.0
- symfony/maker-bundle: ^1.60
- symfony/phpunit-bridge: ^8.0
- symfony/scheduler: ^7.4 || ^8.0
- symfony/type-info: ^7.4 || ^8.0
- symfony/ux-twig-component: ^2.32
- symplify/easy-coding-standard: ^12.5
Suggests
- ext-zip: Optional: required for the XLSX submission export (CSV works without it).
- mollie/mollie-api-php: Optional: required only if you use the Mollie payment integration.
- symfony/asset-mapper: Optional: required to use the bundle's CSS stylesheet.
- symfony/maker-bundle: Optional: enables make:wizard-field-type and make:wizard-payment-provider.
- symfony/scheduler: Optional: schedules the submission retention purge.
- symfony/ux-twig-component: Optional: enables the FormWizard Twig component.
Provides
None
Conflicts
None
Replaces
None
README
Multi-step forms for Sulu 3, built by editors in the Sulu admin and rendered on the website with Symfony Forms. Submissions, mails and webhooks are handled in the background, so the bundle runs on shared hosting. Payments are optional: a form without prices is a plain form.
Status: pre-1.0. Build on the types marked
@apionly; everything marked@internalmay change in any release (ADR 005). Every breaking change is listed in UPGRADE.
Features
- Form builder in the Sulu admin: steps, fields, repeatable groups, file uploads, consent and content blocks.
- Conditions: show fields and steps based on earlier answers, checked again on the server.
- Mails: to the site and the customer, with variables, rules per receiver, branding and a test mail.
- Submissions: list, detail with history, CSV/Excel export, retention per form and personal data requests.
- Payments (optional): prices, VAT, discount codes, capacity and closing dates, Mollie built in, retry and reminder mails.
- Webhooks: signed deliveries with retries and a log per attempt.
- Operating: processing dashboard, failed message retry and a
yiggle:form-wizard:checksetup check. - Spam protection: honeypot, timing and rate limits out of the box, Cloudflare Turnstile optional.
- No frontend build: Stimulus controllers via AssetMapper, an optional stylesheet, or your own CSS classes.
- Extensible: own field types, payment providers, completion gates, mail templates and event listeners.
A form has one language; for a multilingual site, create one form per language (ADR 001).
Compatibility
| Component | Supported | Tested in CI |
|---|---|---|
| PHP | 8.4+ | 8.4, 8.5 |
| Symfony | 7.4 / 8.x | 7.4 (lowest and newest), 8 |
| Sulu | 3.x | 3.0 (lowest) and newest |
| Doctrine ORM | 3.x (DBAL 4.5+) | lowest and newest |
Quick start
Starting from a new sulu/skeleton? Run composer require symfony/asset-mapper symfony/doctrine-messenger first and
load {{ importmap('app') }} in your base template; the
installation guide
explains why.
-
Install the bundle; the Flex recipe adds the configuration and routes:
composer require yiggle/form-wizard-bundle
-
Create the tables:
bin/console doctrine:migrations:migrate
-
Add
"@yiggle/form-wizard-bundle": "file:../../vendor/yiggle/form-wizard-bundle/assets/admin/"to the dependencies inassets/admin/package.json,import '@yiggle/form-wizard-bundle';toassets/admin/app.js, and rebuild the admin:bin/adminconsole sulu:admin:update-build
-
Check that Flex added the bundle's Stimulus controllers to
assets/controllers.json. -
Route
ProcessSubmission,SendStatusMailandSendWebhookto an async Messenger transport and runmessenger:consume(Supervisor, systemd or cron). -
Check the setup; every problem comes with its fix:
bin/console yiggle:form-wizard:check
-
Grant the Form Wizard permissions to a role, add a form under Yiggle Form Wizard > Forms and tick Published.
-
Add the form wizard block to a page and select the form.
The installation guide has every step in full, including the cron lines for shared hosting.
Documentation
| Guide | For |
|---|---|
| User guide | Installing, configuring, building forms, submissions and operating |
| Developer guide | Architecture, extension points, reference and testing |
| Architecture decisions | Why the bundle is built the way it is |
| UPGRADE | Steps for every release |
| CHANGELOG | What changed in every release |
Contributing
composer install composer qa
composer qa runs ECS, the dependency analyser, Rector, Deptrac, PHPStan, PHPUnit and the JavaScript tests. How the tests are set up is in
Testing.
License
MIT, see LICENSE.