sfPropelGraphvizPlugin - 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/sfPropelGraphvizPlugin" 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
Output Example
Attachments
- schema.png (25.6 kB) - added by KRavEN on 10/04/07 00:44:29.
- sfPropelGraphvizPlugin-0.2.0.tgz (1.2 kB) -
Renamed plugin so it could be hosted
, added by KRavEN on 10/04/07 14:07:17.


