Download the PHP package polysource/workflow-bridge without Composer
On this page you can find all versions of the php package polysource/workflow-bridge. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download polysource/workflow-bridge
More information about polysource/workflow-bridge
Files in polysource/workflow-bridge
Package workflow-bridge
Short Description Polysource — Symfony Workflow bridge: auto-generates inline transition actions + state chips for resources with a Workflow attached.
License MIT
Homepage https://github.com/polysource/polysource
Informations about the package workflow-bridge
polysource/workflow-bridge
Symfony Workflow integration for Polysource — auto-generated transition buttons + state chip per resource.
Part of the Polysource monorepo. MIT-licensed.
When to use
You're modelling an ecommerce / CRM / claims / HR / regulated workflow with symfony/workflow and want the admin UI to expose only the transitions actually enabled by the workflow guards. This package wraps Symfony's Workflow\Registry into auto-generated Polysource actions and a state chip Twig helper.
See ADR-021. Separate package so polysource/symfony-bundle doesn't pull symfony/workflow for hosts that don't use it.
What it ships
WorkflowAwareInterface+WorkflowAwareTrait— opt-in marker for resources.WorkflowResolver— wraps Symfony WorkflowRegistrywith graceful null-on-failure.TransitionDiscovery— delegates toWorkflow::getEnabledTransitions()(guards natifs Symfony intacts).ApplyTransitionAction— auto-generated per transition, granular permissionPOLYSOURCE_WORKFLOW_TRANSITION_<UPPER>,TransitionException→ActionResult::failure.WorkflowChipPalette+WorkflowChipExtensionTwig (polysource_workflow_chip_palette()+polysource_workflow_state_label())._state_chip.html.twigpartial Bootstrap.- Config
polysource_workflow_bridge.palettes.<workflow>.<state>with wildcard fallback.
Audit log (ADR-020) traces every transition for free (actionName=transition-<name>).
Install
Register the bundle:
Documentation
- Workflow-bridge walkthrough
All versions of workflow-bridge with dependencies
polysource/core Version ^0.1 || ^0.5 || ^0.7 || ^0.9
symfony/config Version ^5.4 || ^6.0 || ^7.0 || ^8.0
symfony/dependency-injection Version ^5.4 || ^6.0 || ^7.0 || ^8.0
symfony/http-kernel Version ^5.4 || ^6.0 || ^7.0 || ^8.0
symfony/translation Version ^5.4 || ^6.0 || ^7.0 || ^8.0
symfony/workflow Version ^5.4 || ^6.0 || ^7.0 || ^8.0
symfony/yaml Version ^5.4 || ^6.0 || ^7.0 || ^8.0
twig/twig Version ^3.0