2017 © Pedro Peláez
 

symfony-bundle state-machine-visualization-bundle

Visualization bundle for winzou/state-machine-bundle

image

madmind/state-machine-visualization-bundle

Visualization bundle for winzou/state-machine-bundle

  • Saturday, April 15, 2017
  • by MadMind
  • Repository
  • 1 Watchers
  • 8 Stars
  • 2,028 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 12 % Grown

The README.md

State Machine Visualization bundle

This bundle allows to visually preview your state machine graph., (*1)

Installation

Requirements

dot - Part of graphviz package (http://www.graphviz.org/), (*2)

Installation (via composer)

composer require madmind/state-machine-visualization-bundle

Register the bundle

Symfony Flex will register the bundle automatically., (*3)

For projects without Symfony Flex (usually below version 4.0), (*4)

// app/AppKernel.php
public function registerBundles()
{
    return array(
        // ...
        new MadMind\StateMachineVisualizationBundle\StateMachineVisualizationBundle(),
    );
}

Customize dot location

# config/packages/state_machine_visualization.yaml
...
state_machine_visualization:
    dot: /usr/local/bin/dot
    layout: TB # Direction of graph layout. Possible values: LR - from left to right (default), TB - from top to bottom.
    node_shape: circle # Default. Other possible values can be found here: http://www.graphviz.org/doc/info/shapes.html

Configure routing

# config/routes.yaml
...
state_machine_visualization:
    resource: "@StateMachineVisualizationBundle/Resources/config/routing.yml"
    prefix:   /smv

Usage

See graph of demo state machine (https://github.com/winzou/StateMachineBundle#configure-a-state-machine-graph), (*5)

http://127.0.0.1:8000/smv/my_bundle_article.png, (*6)

The Versions

15/04 2017

dev-master

9999999-dev

Visualization bundle for winzou/state-machine-bundle

  Sources   Download

MIT

The Requires

 

by Avatar MadMind

bundle symfony statemachine graph visualization

04/06 2015

0.1.0

0.1.0.0

Visualization bundle for winzou/state-machine-bundle

  Sources   Download

MIT

The Requires

 

by Avatar MadMind

bundle symfony statemachine graph visualization