Development

sfPropelGraphviz

You must first sign up to be able to contribute.

Version 3 (modified by KRavEN, 10 years ago)
--

sfPropelGraphviz - A simple pake task to build graphviz .dot files from your project schema

Author

Benjamin Runnels

Code and idea provided by roga in this thread: http://www.symfony-project.com/forum/index.php?t=msg&th=4595&start=0

Overview

This creates a folder "graph" in your projects folder containing a "schema.dot" file which can be converted to e.g. a PNG file using the graphviz package from http://www.graphviz.org/

Installation

To install the plugin use "symfony plugin-install http://plugins.symfony-project.com/sfPropelGraphviz" command

Using the plugin

> symfony propel-graphviz
...
propel > graphviz:
     [echo] +------------------------------------------+
     [echo] |                                          |
     [echo] | Generating Graphiz for YOUR Propel       |
     [echo] | project!                                 |
     [echo] |                                          |
     [echo] +------------------------------------------+
...

Now check the "graph" folder under your project root for schema.dot.

If you have graphviz installed the following command will get you an image when run from your project root:

dot -Tpng graph/schema.dot -o graph/schema.png

Attachments