phUML is a fully automatic UML class diagram generator for PHP code

6.1.0 2022-06-20 17:05 UTC


CI workflow Scrutinizer Code Quality Code Coverage Infection MSI Latest Stable Version Minimum PHP Version

phUML is a fully automatic UML class diagram generator written in PHP. It creates a class diagram from an Object-Oriented codebase based on the UML specification.



phUML can be installed by Phive - The PHAR Installation and Verification Environment.

phive install phuml


The official phUML Docker image can be found on Docker Hub.

docker pull montealegreluis/phuml

Here's the list of all the available Docker image tags


phUML can be installed globally by Composer.

composer global require phuml/phuml

Alternatively, you may want to install phUML as well as its dependencies.

composer require phuml/phuml

How does it look like?

UML Diagram

The image shown here, is the class diagram generated by phUML when it's run against its original codebase.


For more details visit the documentation page


Please refer to CONTRIBUTING for information on how to contribute to phUML.


Released under the BSD-3-Clause.


This code is principally developed and maintained by Luis Montealegre.

This library was created by Jakob Westhoff.

Special thanks to all of these awesome contributors.