Download the PHP package myvars/form-flow without Composer
On this page you can find all versions of the php package myvars/form-flow. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package form-flow
FormFlow
Thin controllers, consistent flows. myvars/form-flow is a small Symfony bundle that factors the
repetitive parts of CRUD-style controllers — form handling, validation feedback, CSRF-guarded
confirmation, pagination, Turbo-aware redirects — into five reusable flow coordinators. Your
controller actions stay one call long, and every create/update/delete action follows the same shape.
The five flows
| Flow | Purpose |
|---|---|
FormFlow |
Create/update with Symfony forms — validate, map to a command, dispatch, flash, redirect |
ActionFlow |
State transitions without a form (approve, complete, …) |
ConfirmFlow |
Confirm-then-execute (delete, cancel, rewind, …) with per-action CSRF scoping |
SearchFlow |
Paginated index pages from a Pagerfanta adapter |
InlineEditFlow |
Single-field inline editing over Turbo Frames |
Design
The package owns logic only. It depends on framework packages, Pagerfanta and its own Contract\
ports — never on application code. The consuming app supplies two things:
- Adapters for the ports (
ResultInterface,RedirectTargetInterface,FlasherInterface,SearchCriteriaInterface), which Symfony autowires by interface. - Templates — the bundle ships design-neutral defaults so flows render out of the box; your app
overrides any of them by placing its own styled version at the same
templates/shared/form_flow/...path (yourtemplates/wins). See docs/templates.md.
This keeps the flows decoupled from your domain, your DTOs and your design system.
Requirements
- PHP 8.5+
- Symfony 8.1+ (Form, HttpFoundation, Routing, Security CSRF, Twig, UX Turbo)
Installation
Enable the bundle (if Symfony Flex did not):
Then provide the port adapters and templates — see docs/installation.md.
Documentation
- Installation & wiring — bundle setup, the adapters you implement, path-repo/Docker notes
- Using the flows — a worked controller example for every flow, plus
FlowContext/FlowModel - Ports & adapters — implementing
Result,RedirectTarget,Flasher,SearchCriteria - Template contract — required templates and the variables passed to them
Quality
License
Released under the MIT License.
All versions of form-flow with dependencies
pagerfanta/core Version ^4
symfony/config Version ^8.1
symfony/dependency-injection Version ^8.1
symfony/form Version ^8.1
symfony/http-foundation Version ^8.1
symfony/http-kernel Version ^8.1
symfony/object-mapper Version ^8.1
symfony/options-resolver Version ^8.1
symfony/routing Version ^8.1
symfony/security-csrf Version ^8.1
symfony/ux-turbo Version ^3.1
twig/twig Version ^3