PHPackages                             iipokypatop/graphviz - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. iipokypatop/graphviz

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

iipokypatop/graphviz
====================

GraphViz graph drawing for mathematical graph/network

v0.2.1(11y ago)0492MITPHPPHP &gt;=5.3.0

Since Dec 31Pushed 10y ago1 watchersCompare

[ Source](https://github.com/iipokypatop/graphviz)[ Packagist](https://packagist.org/packages/iipokypatop/graphviz)[ Docs](https://github.com/graphp/graphviz)[ RSS](/packages/iipokypatop-graphviz/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (3)Versions (5)Used By (0)

graphp/graphviz [![Build Status](https://camo.githubusercontent.com/bc1230cb3810859151c2d890cddec917bea5dd5fd5f1f71a5f38b4c62fdfd85a/68747470733a2f2f7472617669732d63692e6f72672f6772617068702f677261706876697a2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/graphp/graphviz)
============================================================================================================================================================================================================================================================================================

[](#graphpgraphviz-)

GraphViz graph drawing for mathematical graph/network

The library supports visualizing graph images, including them into webpages, opening up images from within CLI applications and exporting them as PNG, JPEG or SVG file formats (among many others). Because [graph drawing](http://en.wikipedia.org/wiki/Graph_drawing) is a complex area on its own, the actual layouting of the graph is left up to the excelent [GraphViz](http://www.graphviz.org/)"Graph Visualization Software" and we merely provide some convenient APIs to interface with GraphViz.

> Note: This project is in beta stage! Feel free to report any issues you encounter.

Quickstart examples
-------------------

[](#quickstart-examples)

Once [installed](#install), let's build and display a sample graph:

```
$graph = new Fhaculty\Graph\Graph();

$blue = $graph->createVertex('blue');
$blue->setAttribute('graphviz.color', 'blue');

$red = $graph->createVertex('red');
$red->setAttribute('graphviz.color', 'red');

$edge = $blue->createEdgeTo($red);
$edge->setAttribute('graphviz.color', 'grey');

$graphviz = new Graphp\GraphViz\GraphViz();
$graphviz->display($graph);
```

The above code will open your default image viewer with the following image:

[![red-blue](https://cloud.githubusercontent.com/assets/776829/6545433/636e8534-c587-11e4-94f4-4d540b4564ed.png)](https://cloud.githubusercontent.com/assets/776829/6545433/636e8534-c587-11e4-94f4-4d540b4564ed.png)

Install
-------

[](#install)

The recommended way to install this library is [through composer](http://getcomposer.org). [New to composer?](http://getcomposer.org/doc/00-intro.md)

```
{
    "require": {
        "graphp/graphviz": "~0.2.0"
    }
}
```

In order to be able to use the [graph drawing feature](#graph-drawing) you'll have to install GraphViz (`dot` executable). Users of Debian/Ubuntu-based distributions may simply invoke `sudo apt-get install graphviz`, Windows users have to [download GraphViZ for Windows](http://www.graphviz.org/Download_windows.php) and remaining users should install from [GraphViz homepage](http://www.graphviz.org/Download.php).

License
-------

[](#license)

Released under the terms of the permissive [MIT license](http://opensource.org/licenses/MIT).

###  Health Score

25

—

LowBetter than 36% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 89.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~33 days

Total

3

Last Release

4128d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/eecaa7655e9c21e7eb4b0d0eadfe1b10f380ffc34821bebe8a7a69e29e997fbb?d=identicon)[iipokypatop](/maintainers/iipokypatop)

---

Top Contributors

[![clue](https://avatars.githubusercontent.com/u/776829?v=4)](https://github.com/clue "clue (17 commits)")[![iipokypatop](https://avatars.githubusercontent.com/u/4989537?v=4)](https://github.com/iipokypatop "iipokypatop (2 commits)")

---

Tags

graphvizgraph drawinggraph imagedot output

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/iipokypatop-graphviz/health.svg)

```
[![Health](https://phpackages.com/badges/iipokypatop-graphviz/health.svg)](https://phpackages.com/packages/iipokypatop-graphviz)
```

###  Alternatives

[graphp/graphviz

GraphViz graph drawing for the mathematical graph/network library GraPHP.

3262.2M53](/packages/graphp-graphviz)[graphp/algorithms

Common mathematical graph algorithms implemented in PHP

1392.9M14](/packages/graphp-algorithms)[alom/graphviz

Graphviz generation for PHP

73658.3k9](/packages/alom-graphviz)[bartlett/umlwriter

Create UML class diagrams from your PHP source.

6313.4k1](/packages/bartlett-umlwriter)[innmind/object-graph

Extract object graph out of a root object

242.8k7](/packages/innmind-object-graph)[graphp/graphml

GraphML is an XML-based file format for graphs

286.7k1](/packages/graphp-graphml)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
