2017 © Pedro Peláez
 

cakephp-plugin cakephp-graphviz-models

A tool to generate a graph of model relationships

image

mamchenkov/cakephp-graphviz-models

A tool to generate a graph of model relationships

  • Friday, August 21, 2015
  • by dereuromark
  • Repository
  • 3 Watchers
  • 21 Stars
  • 58 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 1 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

CakePHP GraphViz Relations

This is a CakePHP shell that will find all models in your CakePHP application and plugins, figure out the relationships between them, and will build a nice graph, visualzing those relationships for you., (*1)

It supports CakePHP 2.x, and requires PHP 5.3.3 or greater. But there are numerous ways it can fail to work for you. If it does fail, please let me know and I'll try to fix it., (*2)

Intallation via Composer, (*3)

require: {
    "mamchenkov/cakephp-graphviz-models": "dev-master"
}

Load plugin in app/Config/bootstrap.php, (*4)

CakePlugin::load('GraphVizRelations');

Requirements

Since version 2.1 (Angry Blue Octopus On Steroids), this script relies on phpDocumentor/Graphviz package, rather than directly on the command-line dot tool. But you will need to install the Graphviz command line tool incl. dot., (*5)

Usage

The simplest way to use this shell is just to run it via CakePHP console:, (*6)

$ Console/cake GraphVizRelations.graph

This should generate a graph.png image in your current directory. Please have a look., (*7)

If you need more control, there are two options that this shell understand from the command line: filename and format. You can use either the filename option like so:, (*8)

$ Console/cake GraphVizRelations.graph /tmp/my_models.png

Or you can use both options together like so:, (*9)

$ Console/cake GraphVizRelations.graph /tmp/my_models.svg svg

No special magic is done about the filename. What You Give Is What You Get. As for the format, you can use anything that GraphViz supports and understands., (*10)

If you are still looking for more control, have a look inside the script. There are plenty of settings, options, parameters, and comments for you to make sense of it all. It might be helpful to get familiar with GraphViz Dot Language, just to feel a tiny bit more confident., (*11)

Enjoy!, (*12)

The Versions

21/08 2015

dev-master

9999999-dev

A tool to generate a graph of model relationships

  Sources   Download

GPL-2.0

The Requires

 

graphviz cakephp model chart graph erd

16/06 2014

dev-CakePHP-2.0

dev-CakePHP-2.0

A tool to generate a graph of model relationships

  Sources   Download

The Requires