Create UML diagrams from your PHP source

GraPHP UML

Features

The main features provided by this library are:

  • build UML statements of a class diagram
  • draw png/svg image formats

Currently, the following language features are supported:

  • Property and method visibility
  • Static properties and methods
  • Method return types natively and from doc comment
  • Parameter types from type hinting and doc comment
  • Parameter default values
  • Class constants with value
  • Property types from doc comment
  • Property default values
  • Implemented interfaces and parent classes
  • Abstract classes

Install

The recommended way to install this library is through composer. If you don’t know yet what is composer, have a look on introduction.

composer require bartlett/graph-uml

Graph Composer

Additionally, you’ll have to install GraphViz (dot executable). Users of Debian/Ubuntu-based distributions may simply invoke:

$ sudo apt update
$ sudo apt-get install graphviz

while remaining users should install from GraphViz Download page.