Generate a GraphViz representation of the dependency graph
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs update picture to 2.0 Oct 10, 2017
src * remove one level of directories Oct 10, 2017
.gitignore remove files not needed by composer plugin Oct 10, 2017
LICENSE.md ComposerViz tool Aug 6, 2017
README.md
composer.json

README.md

ComposerViz

Packagist Packagist Code Climate Dependency Status

A Composer plugin to generate dependency graph by GraphViz inspired by bundle viz

Installation

Install globally so you can use it on any project

composer global require sandfoxme/composer-viz:^2.0

Example

Running composer-viz 2.0.0 for itself: composer viz --output=composer-viz-2.0.0.svg

selfie

Usage

composer viz [-o|--output OUTPUT] [-f|--format FORMAT] 
             [--no-dev] [--no-php] [--no-ext] [--no-platform] 
             [--no-pkg-versions] [--no-dep-versions] [--no-versions]

-o|--output OUTPUT: Set output file. If not set, the result will be displayed from temporary file
-f|--format FORMAT: Set output file format. Useful if it is not detected from --output
--no-dev: Do not show development dependencies
--no-php: Do not show PHP as a dependency (php and php64)
--no-ext: Do not show extensions as dependencies
--no-platform: --no-php + --no-ext
--no-pkg-versions: Do not show package versions on graph vertices
--no-dep-versions: Do not show package versions on graph edges
--no-versions: --no-pkg-versions + --no-dep-versions

GraphViz

You should install GraphViz on your system first.

Use this in Ubuntu:

sudo apt-get install graphviz

Sometimes you may need additional packages like in Fedora you should also install graphviz-gd to be able to export images, like this:

# dot, svg and postscript work without graphviz-gd but png, jpeg and gif don't
sudo dnf install graphviz graphviz-gd