Download the PHP package invelity/laravel-headless-wizard without Composer
On this page you can find all versions of the php package invelity/laravel-headless-wizard. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download invelity/laravel-headless-wizard
More information about invelity/laravel-headless-wizard
Files in invelity/laravel-headless-wizard
Package laravel-headless-wizard
Short Description Headless multi-step wizard package for Laravel with FormRequest validation, progress tracking, and frontend-agnostic API
License MIT
Homepage https://github.com/invelity/laravel-headless-wizard
Informations about the package laravel-headless-wizard
Laravel Headless Wizard
Multi-step wizards for Laravel, built the way Laravel itself is built. You declare a wizard and its steps as classes. Every step validates its input with a form request. The package keeps each visitor's progress and tells you which step comes next. The rendering stays yours: Blade, Livewire, Inertia, Vue, React, or a mobile app talking to the JSON API.
Features
- Typed and stateless.
OrderWizard $wizardis injected like a form request and bound to the current visitor. There is noinitialize()and no string ids. - Laravel-native validation. Each step names a form request, and the request runs its whole lifecycle:
prepareForValidation(),authorize(),after()hooks andpassedValidation(). Only validated data is stored. - Flow rules in one place. Optional steps, conditional steps (
shouldSkip()), dependencies that reopen later steps when earlier data changes, and display-only steps such as a confirmation page. - Scoped stores. Session, cache, database (encrypted) and array stores. Every visitor's state is kept apart, and
custom drivers plug in through
Wizard::extend(). - Opt-in JSON API.
Route::wizard('order', OrderWizard::class)registers resource-style routes with one response shape. The package registers no routes by itself. - Generators.
php artisan wizard:makeandwizard:make-stepare built on Laravel'sGeneratorCommand.wizard:make-step --viewalso creates the step's Blade view withmake:view. - Events.
WizardStarted,StepCompleted,StepSkipped,StepReopened,WizardCompleted,WizardReset. - Translated messages in English and Slovak.
Requirements
- PHP 8.4 or higher
- Laravel 12 or 13
Installation
The session store works out of the box. To keep state in the database instead:
Then set WIZARD_STORE=database.
Quick start
Generate a wizard and its steps:
The wizard lists its steps in order:
Each step names the form request that validates it, and may transform the data it stores:
Drive it from your own controllers…
…or expose the JSON API for a single-page or mobile frontend:
Documentation
The full documentation lives at invelity.github.io/laravel-headless-wizard:
Upgrading from 1.x? Read UPGRADING.md.
Testing
Contributing and security
See SECURITY.md, not in public issues.
License
The MIT License (MIT). See LICENSE.md.