PHPackages                             clue/graph-uml - 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. clue/graph-uml

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

clue/graph-uml
==============

Generate UML class diagrams by reflection for your PHP projects

v0.2.0(12y ago)231.4k6[5 issues](https://github.com/clue/graph-uml/issues)[3 PRs](https://github.com/clue/graph-uml/pulls)MITPHPPHP &gt;=5.3.0

Since Dec 4Pushed 4y ago5 watchersCompare

[ Source](https://github.com/clue/graph-uml)[ Packagist](https://packagist.org/packages/clue/graph-uml)[ Docs](https://github.com/clue/graph-uml)[ RSS](/packages/clue-graph-uml/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (2)Versions (7)Used By (0)

clue/graph-uml [![Build Status](https://camo.githubusercontent.com/138f573d588ed4a91a4157450d847cf5df674884a35bf9cdd2524c9a62bc46c3/68747470733a2f2f7472617669732d63692e6f72672f636c75652f67726170682d756d6c2e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/clue/graph-uml)
========================================================================================================================================================================================================================================================================================

[](#cluegraph-uml-)

Generate UML class diagrams by reflection for your PHP projects

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

Quickstart example
------------------

[](#quickstart-example)

Once [installed](#install), you can use the following code to draw an UML class diagram for your existing classes:

```
// initialize an empty graph and the UML class diagram builder
$graph = new Fhaculty\Graph\Graph();
$builder = new Fhaculty\Graph\Uml\ClassDiagramBuilder($graph);

// let's add some classes to the diagram
$builder->createVertexClass('Fhaculty\Graph\Uml\ClassDiagramBuilder');

// display graph as svg image
$graphviz = new Fhaculty\Graph\GraphViz($graph);
$graphviz->display();
```

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": {
        "clue/graph-uml": "0.2.*"
    }
}
```

Additionally, 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)

MIT

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 54.3% 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 ~82 days

Total

2

Last Release

4461d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/776829?v=4)[Christian Lück](/maintainers/clue)[@clue](https://github.com/clue)

---

Top Contributors

[![clue](https://avatars.githubusercontent.com/u/776829?v=4)](https://github.com/clue "clue (25 commits)")[![clemens-tolboom](https://avatars.githubusercontent.com/u/371014?v=4)](https://github.com/clemens-tolboom "clemens-tolboom (21 commits)")

---

Tags

reflectionumlgraphClass Diagram

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/clue-graph-uml/health.svg)

```
[![Health](https://phpackages.com/badges/clue-graph-uml/health.svg)](https://phpackages.com/packages/clue-graph-uml)
```

###  Alternatives

[phpdocumentor/reflection-common

Common reflection classes used by phpdocumentor to reflect the code structure

9.1k706.8M26](/packages/phpdocumentor-reflection-common)[symfony/property-access

Provides functions to read and write from/to an object or array using a simple string notation

2.8k295.3M2.5k](/packages/symfony-property-access)[phpdocumentor/reflection

Reflection library to do Static Analysis for PHP Projects

12521.4M109](/packages/phpdocumentor-reflection)[php-di/phpdoc-reader

PhpDocReader parses @var and @param values in PHP docblocks (supports namespaced class names with the same resolution rules as PHP)

7431.6M55](/packages/php-di-phpdoc-reader)[graphp/graph

GraPHP is the mathematical graph/network library written in PHP.

711292.6k3](/packages/graphp-graph)[amenadiel/jpgraph

Composer Friendly, full refactor of JpGraph, library to make graphs and charts

1492.2M7](/packages/amenadiel-jpgraph)

PHPackages © 2026

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