PHPackages                             myvars/form-flow - 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. [Admin Panels](/categories/admin)
4. /
5. myvars/form-flow

ActiveSymfony-bundle[Admin Panels](/categories/admin)

myvars/form-flow
================

Generic Symfony controller-flow coordinators (Form/Action/Confirm/Search/InlineEdit) — the FormFlow pattern.

v1.1.0(1mo ago)025↓90%MITPHPPHP &gt;=8.5CI passing

Since Jun 4Pushed 1mo agoCompare

[ Source](https://github.com/myvars/form-flow)[ Packagist](https://packagist.org/packages/myvars/form-flow)[ RSS](/packages/myvars-form-flow/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (16)Versions (3)Used By (0)

FormFlow
========

[](#formflow)

[![CI](https://github.com/myvars/form-flow/actions/workflows/ci.yml/badge.svg)](https://github.com/myvars/form-flow/actions/workflows/ci.yml)

**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.

```
#[Route('/task/new', name: 'app_demo_task_new', methods: ['GET', 'POST'])]
public function new(Request $request, CreateTaskMapper $mapper, CreateTaskHandler $handler, FormFlow $flow): Response
{
    return $flow->form(
        request: $request,
        formType: TaskType::class,
        data: new TaskForm(),
        mapper: $mapper,      // form DTO -> command
        handler: $handler,    // command -> ResultInterface
        context: FlowContext::forCreate(FlowModel::create('demo', 'task')),
    );
}
```

The five flows
--------------

[](#the-five-flows)

FlowPurpose`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 FramesDesign
------

[](#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 (your `templates/` wins). See [docs/templates.md](docs/templates.md).

This keeps the flows decoupled from your domain, your DTOs and your design system.

Requirements
------------

[](#requirements)

- PHP 8.5+
- Symfony 8.1+ (Form, HttpFoundation, Routing, Security CSRF, Twig, UX Turbo)

Installation
------------

[](#installation)

```
composer require myvars/form-flow
```

Enable the bundle (if Symfony Flex did not):

```
// config/bundles.php
return [
    // ...
    MyVars\FormFlow\FormFlowBundle::class => ['all' => true],
];
```

Then provide the port adapters and templates — see **[docs/installation.md](docs/installation.md)**.

Documentation
-------------

[](#documentation)

- **[Installation &amp; wiring](docs/installation.md)** — bundle setup, the adapters you implement, path-repo/Docker notes
- **[Using the flows](docs/flows.md)** — a worked controller example for every flow, plus `FlowContext`/`FlowModel`
- **[Ports &amp; adapters](docs/adapters.md)** — implementing `Result`, `RedirectTarget`, `Flasher`, `SearchCriteria`
- **[Template contract](docs/templates.md)** — required templates and the variables passed to them

Quality
-------

[](#quality)

```
composer test       # PHPUnit — unit, flow and bundle-integration suites
composer phpstan     # PHPStan level 7
composer cs          # php-cs-fixer (dry-run)
```

License
-------

[](#license)

Released under the [MIT License](LICENSE).

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance90

Actively maintained with recent releases

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

50d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5138b1f2f09431fdb394ff8aeaff1a9f447576b64b29156a385ef39996b597a5?d=identicon)[myvars](/maintainers/myvars)

---

Top Contributors

[![myvars](https://avatars.githubusercontent.com/u/2104639?v=4)](https://github.com/myvars "myvars (9 commits)")

---

Tags

symfonybundlecrudformcontrollerturbohotwire

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/myvars-form-flow/health.svg)

```
[![Health](https://phpackages.com/badges/myvars-form-flow/health.svg)](https://phpackages.com/packages/myvars-form-flow)
```

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M400](/packages/easycorp-easyadmin-bundle)[chameleon-system/chameleon-base

The Chameleon System core.

1028.7k5](/packages/chameleon-system-chameleon-base)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.2k18.1k](/packages/prestashop-prestashop)[contao/core-bundle

Contao Open Source CMS

1231.6M2.8k](/packages/contao-core-bundle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
