Download the PHP package ray/object-visual-grapher without Composer
On this page you can find all versions of the php package ray/object-visual-grapher. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ray/object-visual-grapher
More information about ray/object-visual-grapher
Files in ray/object-visual-grapher
Package object-visual-grapher
Short Description A visual graph generator for Ray.Di object dependency graphs
License MIT
Informations about the package object-visual-grapher
Ray.ObjectGrapher
Using ObjectGrapher to visualize Ray.Di applications

Grapher
When you've written a sophisticated application, Ray.Di's rich introspection API can describe the object graph in detail. This grapher exposes this data as an easily understandable visualization. It can show the bindings and dependencies from several classes in a complex application in a unified diagram.
Installation
You can install the ObjectGrapher with composer:
Generating a .dot file
Ray.Di's grapher leans heavily on GraphViz, an open source graph visualization package. It cleanly separates graph specification from visualization and layout. To produce a graph .dot file for an Injector, you can use the following code:
The .dot file
Executing the code above produces a .dot file that specifies a graph. Each entry in the file represents either a node or an edge in the graph. Here's a sample .dot file:
Rendering the .dot file
Download a Graphviz viewer for your platform, and use it to render the .dot file.
On Linux, you can use the command-line dot tool to convert .dot files into images.
Graph display
Edges:
- Solid edges represent dependencies from implementations to the types they depend on.
- Dashed edges represent bindings from types to their implementations.
- Double arrows indicate that the binding or dependency is to a
Provider.
Nodes:
- Implementation types are given black backgrounds.
- Implementation instances have gray backgrounds.
This document is mostly taken from https://github.com/google/guice/wiki/Grapher.