nowo-tech / workflow-bundle
Symfony bundle to define and run Symfony Workflow state machines from database definitions with built-in CRUD.
Package info
github.com/nowo-tech/WorkflowBundle
Type:symfony-bundle
pkg:composer/nowo-tech/workflow-bundle
Requires
- php: >=8.2 <8.6
- doctrine/doctrine-bundle: ^2.13 || ^3.2.4
- doctrine/orm: ^3.7
- nowo-tech/form-kit-bundle: ^2.16
- nowo-tech/migrations-kit-contracts: ^1.0
- nowo-tech/transaction-contract: ^1.0
- nowo-tech/transaction-doctrine: ^1.6
- nowo-tech/ui-kit-bundle: ^2.68
- psr/log: ^1.1 || ^2.0 || ^3.0
- symfony/config: ^7.4 || ^8.0
- symfony/dependency-injection: ^7.4 || ^8.0
- symfony/form: ^7.4 || ^8.0
- symfony/http-kernel: ^7.4 || ^8.0
- symfony/routing: ^7.4 || ^8.0
- symfony/security-csrf: ^7.4 || ^8.0
- symfony/translation: ^7.4 || ^8.0
- symfony/twig-bundle: ^7.4 || ^8.0
- symfony/validator: ^7.4 || ^8.0
- symfony/workflow: ^7.4 || ^8.0
- symfony/yaml: ^7.4 || ^8.0
- twig/extra-bundle: ^3.12
- twig/string-extra: ^3.12
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.0
- igor-php/igor-php: ^0.10.0
- nowo-tech/migrations-kit-bundle: ^2.5
- nowo-tech/phpstan-frankenphp: ^1.0
- phpstan/extension-installer: ^1.4
- phpstan/phpstan: ^2.0
- phpstan/phpstan-phpunit: ^2.0
- phpstan/phpstan-symfony: ^2.0
- phpunit/phpunit: ^11.0
- rector/rector: ^2.0
- symfony/browser-kit: ^7.4 || ^8.0
- symfony/framework-bundle: ^7.4 || ^8.0
- symfony/security-core: ^7.4 || ^8.0
- vincentlanglet/twig-cs-fixer: ^4.0
Suggests
- nowo-tech/migrations-kit-bundle: Runs nowo:migrations:check-key-collations, which asserts the declared identity key columns against the live schema (REQ-SEC-006)
- nowo-tech/search-kit-bundle: Since 1.21: the header search groups of workflow requests (SearchKit >= 1.10, PHP >= 8.3).
- symfony/flex: For automatic recipe installation
- symfony/security-bundle: Required for the private Workflow CRUD UI (or set security.allow_unauthenticated for local demos only)
Provides
None
Conflicts
- nowo-tech/search-kit-bundle: <1.10
Replaces
None
- dev-main
- v2.3.0
- v2.2.1
- v2.2.0
- v2.1.1
- v2.1.0
- v2.0.0
- 1.x-dev
- v1.22.1
- v1.22.0
- v1.21.0
- v1.20.0
- v1.19.0
- v1.18.0
- v1.17.0
- v1.16.0
- v1.15.2
- v1.15.1
- v1.15.0
- v1.14.1
- v1.14.0
- v1.13.0
- v1.12.0
- v1.11.2
- v1.11.1
- v1.11.0
- v1.10.1
- v1.10.0
- v1.9.2
- v1.9.1
- v1.9.0
- v1.8.2
- v1.8.1
- v1.8.0
- v1.7.0
- v1.6.12
- v1.6.11
- v1.6.10
- v1.6.9
- v1.6.8
- v1.6.7
- v1.6.6
- v1.6.5
- v1.6.4
- v1.6.3
- v1.6.2
- v1.6.1
- v1.6.0
- v1.5.2
- v1.5.1
- v1.5.0
- v1.4.3
- v1.4.2
- v1.4.1
- v1.4.0
- v1.3.1
- v1.3.0
- v1.2.0
- v1.1.0
- v1.0.0
- dev-fix/lazy-dialogs
- dev-fix/i18n-batch6
- dev-docs/sequence-table-default-collation
- dev-feat/2.2-version-sequence
- dev-docs/speckit-inventory-2026-11-22
- dev-fix/yp-l1-install-in-tx
- dev-feat/ddd-definitions-port
- dev-feat/arch001-major-2.0.0
- dev-chore/demo-platform-shell
- dev-chore/1.x-maintenance
- dev-fix/schema-fk-collation
- dev-ci/light-mode-pr
- dev-fix/req-runtime-003-conflict-code
- dev-docs/code-inventory-2026-11-20
- dev-fix/searchkit-fixture-order
- dev-feat/searchkit-workflow-requests
- dev-ci/deps-floor
- dev-fix/playwright-image-pin
- dev-fix/req-runtime-003-concurrency
- dev-test/test-005-sf-005
- dev-chore/phase-c-req
- dev-chore/demo-uikit-formkit
- dev-chore/rector-scoped-skips
- dev-feat/versioning-port-twin
- dev-ci/enforce-coverage-gate
- dev-feat/declare-exact-key-columns
- dev-feat/arch-001-d
- dev-feat/beacon-tenant-clones
- dev-fix/beacon-bugs
- dev-fix/nz-filter-class
- dev-fix/nx-repo-factory
- dev-feat/multitenant-workflows
- dev-docs/worker-audit-1.14.1
- dev-fix/nf3-followups
- dev-feat/arch-001-b7
- dev-ci/igor-worker-audit
- dev-fix/ddd-audit-2026-11-10
- dev-chore/symfony-security-2026-11-04
This package is auto-updated.
Last update: 2026-11-28 14:27:32 UTC
README
⭐ Found this useful? Give it a star on GitHub! It helps us maintain and improve the project.
Define Symfony Workflow state machines and workflows in the database, manage them with a built-in CRUD UI, and execute transitions at runtime through DatabaseWorkflowRegistry and WorkflowApplicator.
📋 Compatible with Symfony 7.4+ (PHP 8.2+) and 8.x (PHP 8.4+) — tested on Symfony 7.4, 8.0, and 8.1+.
This bundle is FrankenPHP worker mode friendly.
Definitions list — match rules, priority and row actions |
Definition detail — flow diagram of a branching state machine |
Transitions editor — dialog with searchable from / to places |
Features
- Persist workflow definitions (places, transitions, subject class, marking property) in Doctrine
- Configurable Doctrine
table_prefixfor table and constraint names - Built-in admin UI at
/workflow(configurable path), protected by default viasecurity.access_roles/WorkflowUiAccessPolicyInterface - Admin pages on the UiKit 2.1 page contract (REQ-UI-003): list, show, form, settings and dashboard scaffolds themed once by the host (
nowo_ui_kit.layouts/nowo_ui_kit.theme), flow diagram and collection editors on native<dialog>s, no CDN assets — see Templates - Configurable
web_ui.path_prefix,web_ui.layout_template,web_ui.templates.<page>andweb_ui.list_page_size - UI translations for
en,es,fr,it,de,nl,pt(enable extra locales inweb_ui.locales) - Runtime resolution via
DatabaseWorkflowRegistry(Symfony Workflow component) WorkflowRuntimeInterface/WorkflowApplicatorto apply transitions (your code persists the subject;runtime.flush_after_apply: truelets the bundle flush it)- Optional header search (SearchKit 1.10+, PHP 8.3+): one group per request type finds your workflow requests by a search text and their status, only those your access rules let the viewer see — see Usage
- Demo with order approval (state machine) and document review (parallel workflow)
- FrankenPHP worker mode: Supported (including kernel not reset between requests; see Demo with FrankenPHP and Worker audit)
Quick start
composer require nowo-tech/workflow-bundle
# config/packages/nowo_workflow.yaml nowo_workflow: web_ui: path_prefix: '/workflow' # layout_template: null → nowo_ui_kit.layouts.admin (your layout / bridge, set once in UiKit) security: access_roles: [ROLE_ADMIN]
php bin/console nowo:workflow:sync-schema
php bin/console nowo:workflow:seed-demo # optional sample definitions
Demo
make -C demo up-symfony8
Open http://localhost:8022 — try the CRUD at /workflow and playgrounds for orders/documents.
Playwright e2e and the README screenshots (REQ-DEMO-013): make -C demo/symfony8 test-e2e and
make -C demo/symfony8 demo-screenshots (after make -C demo/symfony8 reset-demo).
Smoke check (boot + HTTP 200):
make demo-smoke
Documentation
- Installation
- Configuration
- Usage
- Contributing
- Code of Conduct
- Changelog
- Upgrading
- Release
- Security
- Engram
- Spec-driven development
- GitHub Spec Kit
Additional documentation
- Usage: standard Symfony host
- Usage: DDD / hexagonal host
- Multitenant workflows (1.15: per-organization definitions, versions, guards, audit)
- Concurrency (safe concurrent applies, conflict codes, REQ-RUNTIME-003)
- Architecture (ports, SPI, events, standard Symfony and DDD hosts, REQ-ARCH-001)
- Templates (UiKit page contract)
- PSR evaluation (REQ-CS-007)
- Demo with FrankenPHP
- FrankenPHP worker audit (no kernel reset)
- GitHub Actions CI requirements
Tests and coverage
| Area | Coverage / status |
|---|---|
| PHP | 100% (statement coverage gate: make coverage-check and composer test-coverage-100 in CI) |
| TS/JS | N/A (the only shipped script, src/Resources/public/js/nowo-workflow.js, is hand-written and has no Vitest suite; the admin UI is exercised by the demo Playwright e2e under demo/symfony8/e2e) |
| Python | N/A |
Tests summary: PHPUnit unit and integration suites (tests/Unit, tests/Integration).
make test
make test-coverage



